Compute scale factor properly.

svn path=/branches/work/kwin_composite/; revision=654285
This commit is contained in:
Luboš Luňák 2007-04-15 17:59:14 +00:00
parent 76cb5de294
commit b30180ca26

View file

@ -530,7 +530,7 @@ void PresentWindowsEffect::calculateWindowTransformationsClosest(EffectWindowLis
slotwidth, slotheight );
geom.adjust( 10, 10, -10, -10 ); // borders
(*it).area = geom;
(*it).scale = geom.width() / float( it.key()->width());
(*it).scale = qMin( geom.width() / float( it.key()->width()), geom.height() / float( it.key()->height()));
(*it).hover = 0;
}
}