summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ecore_evas/ecore_evas_buffer.c8
-rw-r--r--src/lib/ecore_evas/ecore_evas_buffer.h1
2 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/ecore_evas/ecore_evas_buffer.c b/src/lib/ecore_evas/ecore_evas_buffer.c
index 241a122daa..cad4999337 100644
--- a/src/lib/ecore_evas/ecore_evas_buffer.c
+++ b/src/lib/ecore_evas/ecore_evas_buffer.c
@@ -100,7 +100,8 @@ _ecore_evas_resize(Ecore_Evas *ee, int w, int h)
100 } 100 }
101 if (bdata->image) 101 if (bdata->image)
102 evas_object_image_data_set(bdata->image, bdata->pixels); 102 evas_object_image_data_set(bdata->image, bdata->pixels);
103 if (ee->func.fn_resize) ee->func.fn_resize(ee); 103 else
104 bdata->resized = 1;
104} 105}
105 106
106static void 107static void
@@ -163,6 +164,11 @@ _ecore_evas_buffer_prepare(Ecore_Evas *ee)
163 _ecore_evas_resize(ee, w, h); 164 _ecore_evas_resize(ee, w, h);
164 bdata->pixels = evas_object_image_data_get(bdata->image, 1); 165 bdata->pixels = evas_object_image_data_get(bdata->image, 1);
165 } 166 }
167 else if (bdata->resized)
168 {
169 if (ee->func.fn_resize) ee->func.fn_resize(ee);
170 bdata->resized = 0;
171 }
166 172
167 return EINA_TRUE; 173 return EINA_TRUE;
168} 174}
diff --git a/src/lib/ecore_evas/ecore_evas_buffer.h b/src/lib/ecore_evas/ecore_evas_buffer.h
index e29dee335b..1249c380f4 100644
--- a/src/lib/ecore_evas/ecore_evas_buffer.h
+++ b/src/lib/ecore_evas/ecore_evas_buffer.h
@@ -10,6 +10,7 @@ struct _Ecore_Evas_Engine_Buffer_Data {
10 void *(*alloc_func) (void *data, int size); 10 void *(*alloc_func) (void *data, int size);
11 void *data; 11 void *data;
12 Eina_Bool in_render : 1; 12 Eina_Bool in_render : 1;
13 Eina_Bool resized : 1;
13}; 14};
14 15
15#endif /* _ECORE_EVAS_BUFFER_PRIVATE_H_ */ 16#endif /* _ECORE_EVAS_BUFFER_PRIVATE_H_ */