cedric pushed a commit to branch master.

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

commit 45c143a64f3334f523d538d4e6a68edee7ff9d7a
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Mon Mar 12 15:19:38 2018 -0400

    ecore_evas: implement the move method for basic buffer canvas
    
    Signed-off-by: Mike Blumenkrantz <zm...@osg.samsung.com>
---
 src/lib/ecore_evas/ecore_evas_buffer.c | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore_evas/ecore_evas_buffer.c 
b/src/lib/ecore_evas/ecore_evas_buffer.c
index dcb9fa13f1..efa729cb0b 100644
--- a/src/lib/ecore_evas/ecore_evas_buffer.c
+++ b/src/lib/ecore_evas/ecore_evas_buffer.c
@@ -38,6 +38,16 @@ _ecore_evas_buffer_free(Ecore_Evas *ee)
 }
 
 static void
+_ecore_evas_move(Ecore_Evas *ee, int x, int y)
+{
+   Ecore_Evas_Engine_Buffer_Data *bdata = ee->engine.data;
+
+   if (bdata->image) return;
+   ee->x = ee->req.x = x;
+   ee->y = ee->req.y = y;
+}
+
+static void
 _ecore_evas_resize(Ecore_Evas *ee, int w, int h)
 {
    Evas_Engine_Info_Buffer *einfo;
@@ -637,7 +647,7 @@ static Ecore_Evas_Engine_Func _ecore_buffer_engine_func =
      NULL,
      NULL,
      NULL,
-     NULL,
+     _ecore_evas_move,
      NULL,
      _ecore_evas_resize,
      _ecore_evas_move_resize,

-- 


Reply via email to