summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-09-24 20:40:38 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-09-24 20:45:14 +0900
commit974e82c5e51d5c5049c13818843fb78464dd6be2 (patch)
treef314da421007988b6d0db1660c12412f90b2246f /src/lib/evas/canvas
parent08ee7d4b8c708eac2f94e2792df69867d47f0a32 (diff)
evas - make new exact regions round up to 16x16 to keep count sane
make region count sane by rounding to 16x16
Diffstat (limited to 'src/lib/evas/canvas')
-rw-r--r--src/lib/evas/canvas/render2/evas_render2_th_main.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/lib/evas/canvas/render2/evas_render2_th_main.c b/src/lib/evas/canvas/render2/evas_render2_th_main.c
index 8f164f0135..72146b4629 100644
--- a/src/lib/evas/canvas/render2/evas_render2_th_main.c
+++ b/src/lib/evas/canvas/render2/evas_render2_th_main.c
@@ -181,12 +181,13 @@ _evas_render2_regions_merge(Region *region)
181 num = region_rects_num(region); 181 num = region_rects_num(region);
182 for (i = 0; i < num; i++) 182 for (i = 0; i < num; i++)
183 { 183 {
184 region_rect_add 184 int x1, y1, x2, y2;
185 (region2, 185
186 (rects[i].x1 / tsize) * tsize, 186 x1 = (rects[i].x1 / tsize) * tsize;
187 (rects[i].y1 / tsize) * tsize, 187 y1 = (rects[i].y1 / tsize) * tsize;
188 (((rects[i].x2 - rects[i].x1) + tsize - 1) / tsize) * tsize, 188 x2 = ((rects[i].x2 + tsize - 1) / tsize) * tsize;
189 (((rects[i].y2 - rects[i].y1) + tsize - 1) / tsize) * tsize); 189 y2 = ((rects[i].y2 + tsize - 1) / tsize) * tsize;
190 region_rect_add(region2, x1, y1, x2 - x1, y2 - y1);
190 } 191 }
191 region_free(region); 192 region_free(region);
192 return region2; 193 return region2;