circle_surface: add circle surface finish code when surface update 89/153089/1
authorJeonghyun Yun <jh0506.yun@samsung.com>
Thu, 28 Sep 2017 02:36:44 +0000 (11:36 +0900)
committerJeonghyun Yun <jh0506.yun@samsung.com>
Thu, 28 Sep 2017 02:41:28 +0000 (11:41 +0900)
cairo and cairo render should be finished when w or h is 0
because of surface update by resize_cb or show_cb

Change-Id: I8041997f7dc677fb120ba74b8a659eb0192ce078
Signed-off-by: Jeonghyun Yun <jh0506.yun@samsung.com>
src/wearable/circle/efl_extension_circle_surface.c

index 5fd99cdc7a834d7879aaf1a1c2856a2eccb17538..22aadf4e438992b890dc1a646c92fb574aa321df 100644 (file)
@@ -307,6 +307,14 @@ _eext_circle_surface_update(Eext_Circle_Surface *surface)
         _eext_circle_surface_cairo_init(surface);
         _eext_circle_surface_changed(surface);
      }
+   else
+     {
+        if (surface->cairo_surface || surface->cairo)
+          {
+             _eext_circle_surface_cairo_finish(surface);
+             _eext_circle_surface_render_finish(surface);
+          }
+     }
 }
 
 static void