Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/canvas


Modified Files:
        evas_object_image.c 


Log Message:


as an excercise in forcing everyone to write code using the correct
datatypes... i have by default changed the coord datatypes to be ints instead
of doubles... not - READ your headers carefully - they are Evas_Coord types.
dont ASSUME them to be anything except a scalar of some sort your compiler
can handle and cast. (coudl be int, long, long long, short, double, float etc.)


===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/canvas/evas_object_image.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- evas_object_image.c 16 Feb 2004 19:22:48 -0000      1.13
+++ evas_object_image.c 27 Apr 2004 08:31:27 -0000      1.14
@@ -998,6 +998,7 @@
 
    w = ((size * obj->layer->evas->output.w) / 
        (Evas_Coord)obj->layer->evas->viewport.w);
+   if (size <= 0) size = 1;
    if (start > 0)
      {
        while (start - size > 0) start -= size;
@@ -1019,6 +1020,7 @@
 
    h = ((size * obj->layer->evas->output.h) / 
        (Evas_Coord)obj->layer->evas->viewport.h);
+   if (size <= 0) size = 1;
    if (start > 0)
      {
        while (start - size > 0) start -= size;




-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to