raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=c3a866837cce68abf43f0ded3a6727ea9adb2054

commit c3a866837cce68abf43f0ded3a6727ea9adb2054
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Fri Oct 23 11:02:56 2015 +0900

    evas gl - rect draws didnt obey cutout max like font and img - fix
    
    this fixes cutout handling consistency for gl common
---
 src/modules/evas/engines/gl_common/evas_gl_rectangle.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/modules/evas/engines/gl_common/evas_gl_rectangle.c 
b/src/modules/evas/engines/gl_common/evas_gl_rectangle.c
index 2cbd26f..04bdc1a 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_rectangle.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_rectangle.c
@@ -46,7 +46,9 @@ evas_gl_common_rect_draw(Evas_Engine_GL_Context *gc, int x, 
int y, int w, int h)
         else mtex = NULL;
      }
 
-   if (!gc->dc->cutout.rects)
+   if ((!gc->dc->cutout.rects) ||
+       ((gc->shared->info.tune.cutout.max > 0) &&
+           (gc->dc->cutout.active > gc->shared->info.tune.cutout.max)))
      {
         evas_gl_common_context_rectangle_push(gc, x, y, w, h, cr, cg, cb, ca, 
mtex, mx, my, mw, mh, mask_smooth);
      }

-- 


Reply via email to