make cutout rect blocks a bit bigger.

SVN revision: 54547
This commit is contained in:
Carsten Haitzler 2010-11-14 06:00:35 +00:00
parent a763db242f
commit f5b7648de0
2 changed files with 3 additions and 1 deletions

View File

@ -155,6 +155,7 @@ evas_common_draw_context_unset_multiplier(RGBA_Draw_Context *dc)
EAPI void
evas_common_draw_context_add_cutout(RGBA_Draw_Context *dc, int x, int y, int w, int h)
{
// if (dc->cutout.rects > 512) return;
if (dc->clip.use)
{
#if 1 // this is a bit faster
@ -493,6 +494,7 @@ evas_common_draw_context_apply_cutouts(RGBA_Draw_Context *dc)
if (!dc->clip.use) return NULL;
if ((dc->clip.w <= 0) || (dc->clip.h <= 0)) return NULL;
res = evas_common_draw_context_cutouts_new();
evas_common_draw_context_cutouts_add(res, dc->clip.x, dc->clip.y, dc->clip.w, dc->clip.h);

View File

@ -39,7 +39,7 @@ evas_common_draw_context_cutouts_add(Cutout_Rects* rects,
if (rects->max < (rects->active + 1))
{
rects->max += 32;
rects->max += 128;
rects->rects = (Cutout_Rect *)realloc(rects->rects, sizeof(Cutout_Rect) * rects->max);
}