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:
special case fill if fill = object size to avoif roundoff miscalcs
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/canvas/evas_object_image.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- evas_object_image.c 5 Mar 2003 02:30:18 -0000 1.8
+++ evas_object_image.c 5 Apr 2003 04:48:14 -0000 1.9
@@ -971,17 +971,32 @@
if (idh < 1.0) idh = 1.0;
if (idx > 0.0) idx -= idw;
if (idy > 0.0) idy -= idh;
- while (idx < (double)obj->cur.cache.geometry.w)
+ while ((int)idx < obj->cur.cache.geometry.w)
{
double ydy;
+ int dobreak_w = 0;
ydy = idy;
ix = idx;
- iw = ((int)(idx + idw)) - ix;
- while (idy < (double)obj->cur.cache.geometry.h)
+ if (o->cur.fill.w == obj->cur.geometry.w)
{
+ dobreak_w = 1;
+ iw = obj->cur.cache.geometry.w;
+ }
+ else
+ iw = ((int)(idx + idw)) - ix;
+ while ((int)idy < obj->cur.cache.geometry.h)
+ {
+ int dobreak_h = 0;
+
iy = idy;
- ih = ((int)(idy + idh)) - iy;
+ if (o->cur.fill.h == obj->cur.geometry.h)
+ {
+ ih = obj->cur.cache.geometry.h;
+ dobreak_h = 1;
+ }
+ else
+ ih = ((int)(idy + idh)) - iy;
if ((o->cur.border.l == 0) &&
(o->cur.border.r == 0) &&
(o->cur.border.t == 0) &&
@@ -1081,9 +1096,11 @@
obj->layer->evas->engine.func->image_draw(output, context,
surface, o->engine_data, inx, iny, inw, inh, outx, outy, outw, outh,
o->cur.smooth_scale);
}
idy += idh;
+ if (dobreak_h) break;
}
idx += idw;
idy = ydy;
+ if (dobreak_w) break;
}
}
}
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs