hermet pushed a commit to branch master.

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

commit 4e044fd9c27db61d792319ce566e1d3eacb553f2
Author: Jiyoun Park <[email protected]>
Date:   Mon Nov 19 15:24:36 2018 +0900

    evas rect update calculation - account for clipped color changes
    
    Summary:
        if clipped color changed and not object color on rect objects, then
        the updates could be missed. This bug seems to
        have been here a while unnoticed.
    
    Reviewers: Hermet, raster
    
    Reviewed By: Hermet
    
    Subscribers: cedric, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D7301
---
 src/lib/evas/canvas/evas_object_rectangle.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/lib/evas/canvas/evas_object_rectangle.c 
b/src/lib/evas/canvas/evas_object_rectangle.c
index d2dd430b12..af66c0fb6d 100644
--- a/src/lib/evas/canvas/evas_object_rectangle.c
+++ b/src/lib/evas/canvas/evas_object_rectangle.c
@@ -191,7 +191,11 @@ evas_object_rectangle_render_pre(Evas_Object *eo_obj,
    if ((obj->cur->color.r != obj->prev->color.r) ||
        (obj->cur->color.g != obj->prev->color.g) ||
        (obj->cur->color.b != obj->prev->color.b) ||
-       (obj->cur->color.a != obj->prev->color.a))
+       (obj->cur->color.a != obj->prev->color.a) ||
+       (obj->cur->cache.clip.r != obj->prev->cache.clip.r) ||
+       (obj->cur->cache.clip.g != obj->prev->cache.clip.g) ||
+       (obj->cur->cache.clip.b != obj->prev->cache.clip.b) ||
+       (obj->cur->cache.clip.a != obj->prev->cache.clip.a))
      {
        evas_object_render_pre_prev_cur_add(&obj->layer->evas->clip_changes, 
eo_obj, obj);
        goto done;

-- 


Reply via email to