From 35f2f2d9bf0773b0a1ba03647359ac2610d7874e Mon Sep 17 00:00:00 2001 From: raster Date: Wed, 6 Jul 2011 10:21:16 +0000 Subject: [PATCH] provide alpha set call for buffer canvas in ecore-evas. new feature related to elm shot engine. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@61077 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_evas/ecore_evas_buffer.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/lib/ecore_evas/ecore_evas_buffer.c b/src/lib/ecore_evas/ecore_evas_buffer.c index f66dfc8..1fed260 100644 --- a/src/lib/ecore_evas/ecore_evas_buffer.c +++ b/src/lib/ecore_evas/ecore_evas_buffer.c @@ -442,6 +442,13 @@ _ecore_evas_buffer_cb_hide(void *data, Evas *e __UNUSED__, Evas_Object *obj __UN if (ee->func.fn_hide) ee->func.fn_hide(ee); } +static void +_ecore_evas_buffer_alpha_set(Ecore_Evas *ee, int alpha) +{ + if (((ee->alpha) && (alpha)) || ((!ee->alpha) && (!alpha))) return; + ee->alpha = alpha; +} + static Ecore_Evas_Engine_Func _ecore_buffer_engine_func = { _ecore_evas_buffer_free, @@ -488,7 +495,7 @@ static Ecore_Evas_Engine_Func _ecore_buffer_engine_func = NULL, NULL, NULL, - NULL, + _ecore_evas_buffer_alpha_set, NULL, //transparent NULL, // render -- 2.7.4