Enlightenment CVS committal Author : rbdpngn Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_image.c Log Message: Fix scaling smaller images when constraint is set. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_image.c,v retrieving revision 1.32 retrieving revision 1.33 diff -u -3 -r1.32 -r1.33 --- ewl_image.c 15 Mar 2006 06:16:59 -0000 1.32 +++ ewl_image.c 22 Mar 2006 02:41:25 -0000 1.33 @@ -627,10 +627,21 @@ ww = CURRENT_W(w); hh = CURRENT_H(w); if (i->cs) { + /* + * Limit to the constraining size + */ if (ww > i->cs) ww = i->cs; if (hh > i->cs) hh = i->cs; + + /* + * Use images original size if smaller than constraint. + */ + if (ww > i->ow) + ww = i->ow; + if (hh > i->oh) + hh = i->oh; } /* ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs