Enlightenment CVS committal

Author  : atmosphere
Project : e17
Module  : apps/entice

Dir     : e17/apps/entice/src/bin


Modified Files:
        image.c 


Log Message:
Make fit/zoom work right.


===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entice/src/bin/image.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -3 -r1.27 -r1.28
--- image.c     18 Oct 2003 02:46:23 -0000      1.27
+++ image.c     18 Oct 2003 05:22:05 -0000      1.28
@@ -340,6 +340,7 @@
    if ((im = evas_object_smart_data_get(o)))
    {
       im->zoom = val;
+      im->fit = 0;
       evas_object_resize(o, im->w, im->h);
    }
 }
@@ -359,6 +360,7 @@
          im->zoom = ((double) (im->iw) / (double) im->w);
       else
          im->zoom = ((double) (im->ih) / (double) im->h);
+      im->fit = 1;
       entice_image_resize(o, im->w, im->h);
    }
 }
@@ -375,6 +377,7 @@
    if ((im = evas_object_smart_data_get(o)))
    {
       im->zoom = 1.0;
+      im->fit = 0;
       entice_image_resize(o, im->w, im->h);
    }
 }
@@ -394,6 +397,7 @@
       fprintf(stderr, "Zooming Out!! %0.2f\n", im->zoom);
 #endif
       im->zoom *= 1.414;
+      im->fit = 0;
       entice_image_resize(o, im->w, im->h);
    }
 
@@ -416,6 +420,7 @@
       im->zoom /= 1.414;
       if (im->zoom < 0.03125)
          im->zoom = 0.03125;
+      im->fit = 0;
       entice_image_resize(o, im->w, im->h);
    }
 }




-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to