Enlightenment CVS committal

Author  : atmosphere
Project : e17
Module  : proto

Dir     : e17/proto/esmart/src/thumb


Modified Files:
        E_Thumb.c 


Log Message:
Slight attribute query fixup.

===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/esmart/src/thumb/E_Thumb.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- E_Thumb.c   14 Sep 2003 00:30:38 -0000      1.1
+++ E_Thumb.c   19 Sep 2003 23:02:02 -0000      1.2
@@ -98,8 +98,8 @@
       E_Thumb *e = NULL;
       if ((e = (E_Thumb *) evas_object_smart_data_get (o)))
       {
-       if (w) *w = e->w;
-       if (h) *h = e->h;
+       if (w) *w = e->file.w;
+       if (h) *h = e->file.h;
       }
     }
 }
@@ -121,8 +121,10 @@
                
                result = evas_object_image_add(evas_object_evas_get(o));
                evas_object_image_alpha_set(result, 1);
-               evas_object_image_size_set(result, imlib_image_get_width(),
-                                                   imlib_image_get_height());
+               e->file.w = imlib_image_get_width();
+               e->file.h = imlib_image_get_height();
+               evas_object_image_size_set(result, e->file.w, e->file.h);
+
                evas_object_image_data_copy_set(result,
                                     imlib_image_get_data_for_reading_only());
                imlib_free_image_and_decache ();




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to