From: <enl...@li...> - 2004-04-27 23:04:20
|
Enlightenment CVS committal Author : atmosphere Project : e17 Module : proto Dir : e17/proto/esmart/src/thumb Modified Files: E_Thumb.c Log Message: fix display for Esmart_Thumb when the height/width aren't the same =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/esmart/src/thumb/E_Thumb.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -3 -r1.18 -r1.19 --- E_Thumb.c 27 Apr 2004 08:32:30 -0000 1.18 +++ E_Thumb.c 27 Apr 2004 23:04:11 -0000 1.19 @@ -387,9 +387,9 @@ e->w = w; e->h = h; if (e->tw > e->th) - hh *= (Evas_Coord) e->th / (Evas_Coord) e->tw; + hh *= (double) e->th / (double) e->tw; else - ww *= (Evas_Coord) e->tw / (Evas_Coord) e->th; + ww *= (double) e->tw / (double) e->th; evas_object_resize (e->image, ww, hh); evas_object_image_fill_set (e->image, 0.0, 0.0, ww, hh); |