Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_image.c
Log Message:
Don't scale to the constrain size if the image is already smaller than that
size.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_image.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -3 -r1.31 -r1.32
--- ewl_image.c 14 Mar 2006 07:24:35 -0000 1.31
+++ ewl_image.c 15 Mar 2006 06:16:59 -0000 1.32
@@ -624,11 +624,13 @@
emb = ewl_embed_widget_find(w);
- if (i->cs)
- ww = hh = i->cs;
- else {
- ww = CURRENT_W(w);
- hh = CURRENT_H(w);
+ ww = CURRENT_W(w);
+ hh = CURRENT_H(w);
+ if (i->cs) {
+ if (ww > i->cs)
+ ww = i->cs;
+ if (hh > i->cs)
+ hh = i->cs;
}
/*
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs