Enlightenment CVS committal

Author  : atmosphere
Project : e17
Module  : apps/entice

Dir     : e17/apps/entice/src/bin


Modified Files:
        image.c 


Log Message:
Add a damaged rect so we definitely get a visual update on
flipping/rotating


===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entice/src/bin/image.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -3 -r1.24 -r1.25
--- image.c     14 Oct 2003 18:33:29 -0000      1.24
+++ image.c     14 Oct 2003 22:08:53 -0000      1.25
@@ -51,14 +51,14 @@
 entice_image_rotate(Evas_Object * o, int orientation)
 {
    int iw, ih;
-   double w, h;
+   double w, h, x, y;
    Entice_Image *im = NULL;
    Imlib_Image imlib_im = NULL;
 
    if ((im = evas_object_smart_data_get(o)))
    {
       evas_object_image_size_get(im->obj, &iw, &ih);
-      evas_object_geometry_get(o, NULL, NULL, &w, &h);
+      evas_object_geometry_get(o, &x, &y, &w, &h);
 
       if (imlib_im =
           imlib_create_image_using_copied_data(iw, ih,
@@ -78,6 +78,7 @@
          /* if we're fitting, it'll need to be recalculated */
          if (entice_image_zoom_fit_get(o))
             entice_image_zoom_fit(o);
+         evas_damage_rectangle_add(evas_object_evas_get(o), x, y, w, h);
          imlib_free_image();
          return (1);
       }
@@ -94,14 +95,14 @@
 entice_image_flip(Evas_Object * o, int orientation)
 {
    int iw, ih;
-   double w, h;
+   double w, h, x, y;
    Entice_Image *im = NULL;
    Imlib_Image imlib_im = NULL;
 
    if ((im = evas_object_smart_data_get(o)))
    {
       evas_object_image_size_get(im->obj, &iw, &ih);
-      evas_object_geometry_get(o, NULL, NULL, &w, &h);
+      evas_object_geometry_get(o, &x, &y, &w, &h);
 
       if (imlib_im =
           imlib_create_image_using_copied_data(iw, ih,
@@ -125,6 +126,7 @@
          /* if we're fitting, it'll need to be recalculated */
          if (entice_image_zoom_fit_get(o))
             entice_image_zoom_fit(o);
+         evas_damage_rectangle_add(evas_object_evas_get(o), x, y, w, h);
          imlib_free_image();
          return (1);
       }




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to