From: devilhorns Date: Sat, 23 Jul 2011 17:37:04 +0000 (+0000) Subject: Ecore_Evas: Use an easier check for If existing ecore_evas is already X-Git-Tag: accepted/2.0/20130306.224007~181^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97a4fffae939e62027b73ed74fecb5654e4e140f;p=profile%2Fivi%2Fecore.git Ecore_Evas: Use an easier check for If existing ecore_evas is already alpha. No need to do comparisons like this. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@61611 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/ecore_evas/ecore_evas_x.c b/src/lib/ecore_evas/ecore_evas_x.c index 57fec75..c0cd888 100644 --- a/src/lib/ecore_evas/ecore_evas_x.c +++ b/src/lib/ecore_evas/ecore_evas_x.c @@ -1724,8 +1724,7 @@ _ecore_evas_x_alpha_set(Ecore_Evas *ee, int alpha) XWindowAttributes att; #endif - if (((ee->alpha) && (alpha)) || ((!ee->alpha) && (!alpha))) - return; + if ((ee->alpha == alpha)) return; if (!strcmp(ee->driver, "software_x11")) {