Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
ecompmgr.c
Log Message:
Don't shadow objects with empty shape.
===================================================================
RCS file: /cvs/e/e16/e/src/ecompmgr.c,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -3 -r1.121 -r1.122
--- ecompmgr.c 21 Jul 2006 03:17:17 -0000 1.121
+++ ecompmgr.c 12 Aug 2006 19:42:47 -0000 1.122
@@ -93,6 +93,7 @@
unsigned damaged:1;
unsigned fading:1;
unsigned fadeout:1;
+ unsigned has_shadow:1;
Damage damage;
Picture picture;
Picture pict_alpha; /* Solid, current opacity */
@@ -873,7 +874,6 @@
/*
* sides
*/
-
for (x = 0; x < xlimit; x++)
{
d = sum_gaussian(gaussianMap, opacity, x - center, center, width,
@@ -964,7 +964,9 @@
}
#if ENABLE_SHADOWS
- if (!eo->shadow || Mode_compmgr.shadow_mode == ECM_SHADOWS_OFF)
+ cw->has_shadow = (Mode_compmgr.shadow_mode != ECM_SHADOWS_OFF) &&
+ eo->shadow && (EShapeCheck(eo->win) >= 0);
+ if (!cw->has_shadow)
goto skip_shadow;
switch (Mode_compmgr.shadow_mode)
@@ -1995,7 +1997,7 @@
}
#if ENABLE_SHADOWS
- if (!eo->shadow || Mode_compmgr.shadow_mode == ECM_SHADOWS_OFF)
+ if (!cw->has_shadow)
return;
if (clip == None)
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs