Re: [GnomeMeeting-devel-list] [PATCH] vfakeio modification



On lun, 2004-02-09 at 19:53, PUYDT Julien wrote:

> Comment: I wanted to be sure to get exactly one in case
> width==orig_width... I prefer the smaller version if it doesn't give
> something stupid like 0.999999 ...

Stupid of me, here is what the next version of the patch will look like,
if compiling&testing works like expected:
<code>
double scale_w, scale_h, scale;
	
scale_w = (double)width / orig_width;
scale_h = (double)height / orig_height;
	
if (scale_w < scale_h) // one of them is known to be < 1
  scale = scale_w;
else
  scale = scale_h;
</code>

Thanks lurchi for pointing this out!

Snark




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]