Enlightenment CVS committal

Author  : atmosphere
Project : e17
Module  : apps/entice

Dir     : e17/apps/entice/src/bin


Modified Files:
        entice.c image.c 


Log Message:
Add a damaged rect when fixing image
Less frustrating drag behavior

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entice/src/bin/entice.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- entice.c    5 Nov 2003 07:33:56 -0000       1.17
+++ entice.c    5 Nov 2003 08:12:17 -0000       1.18
@@ -741,6 +741,7 @@
 {
    Evas_Coord xx, yy;
    Evas_Coord dx, dy;
+   Evas_Coord w, h;
    Evas_Object *swallowed = NULL;
 
    if (entice && entice->current)
@@ -755,6 +756,9 @@
          entice_image_x_scroll_offset_add(entice->current, -dx);
          entice_image_y_scroll_offset_add(entice->current, -dy);
          edje_object_part_drag_value_set(entice->edje, "EnticeImage", dx, dy);
+        evas_object_geometry_get(entice->current, &x, &y, &w, &h);
+        evas_damage_rectangle_add(ecore_evas_get(entice->ee), x,
+        y,w,h); 
       }
    }
 }
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entice/src/bin/image.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -3 -r1.32 -r1.33
--- image.c     5 Nov 2003 07:33:56 -0000       1.32
+++ image.c     5 Nov 2003 08:12:17 -0000       1.33
@@ -674,6 +674,7 @@
       ww = (int) ((double) im->iw / im->zoom);
       hh = (int) ((double) im->ih / im->zoom);
 
+      /*
       if (ww > w)
       {
          if (im->scroll.x > ((ww - w) / 2))
@@ -702,8 +703,9 @@
          else if (im->scroll.y < -((h - hh + 1) / 2))
             im->scroll.y = -((h - hh + 1) / 2);
       }
-      evas_object_move(im->obj, im->scroll.x + im->x + (im->w - ww) / 2,
-                       im->scroll.y + im->y + (im->h - hh) / 2);
+      */
+      evas_object_move(im->obj, im->scroll.x + im->x, im->scroll.y +
+      im->y);
       evas_object_resize(im->obj, ww, hh);
       evas_object_image_fill_set(im->obj, 0, 0, ww, hh);
    }




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to