summaryrefslogtreecommitdiff
path: root/src/lib/ecore_evas
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-04-23 10:31:09 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-04-23 13:02:46 -0700
commit39c87e6c992db25456894a7c70555f9dd8dae0d9 (patch)
tree7727c1b51518cf9e7684a8ffce5b156b81cecdb9 /src/lib/ecore_evas
parentbbd4247d6aab5a22d15fcb093bc5d291a988a3f3 (diff)
ecore_evas: forgotten refactoring of the buffer engine.
Thanks @jackdanielz for the report.
Diffstat (limited to 'src/lib/ecore_evas')
-rw-r--r--src/lib/ecore_evas/ecore_evas_buffer.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/lib/ecore_evas/ecore_evas_buffer.c b/src/lib/ecore_evas/ecore_evas_buffer.c
index 9b00ad9307..241a122daa 100644
--- a/src/lib/ecore_evas/ecore_evas_buffer.c
+++ b/src/lib/ecore_evas/ecore_evas_buffer.c
@@ -794,11 +794,14 @@ ecore_evas_buffer_allocfunc_new(int w, int h,
794 ee->prop.sticky = EINA_FALSE; 794 ee->prop.sticky = EINA_FALSE;
795 795
796 /* init evas here */ 796 /* init evas here */
797 ee->evas = evas_new(); 797 if (!ecore_evas_evas_new(ee, w, h))
798 evas_data_attach_set(ee->evas, ee); 798 {
799 ERR("Can not create a Canvas.");
800 ecore_evas_free(ee);
801 return NULL;
802 }
803
799 evas_output_method_set(ee->evas, rmethod); 804 evas_output_method_set(ee->evas, rmethod);
800 evas_output_size_set(ee->evas, w, h);
801 evas_output_viewport_set(ee->evas, 0, 0, w, h);
802 805
803 bdata->pixels = bdata->alloc_func(bdata->data, w * h * sizeof(int)); 806 bdata->pixels = bdata->alloc_func(bdata->data, w * h * sizeof(int));
804 807