Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        container.c eimage.c eimage.h 


Log Message:
Fix ugly black shadows on icons in transparent iconbox (noted by Atom Smasher).

===================================================================
RCS file: /cvs/e/e16/e/src/container.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- container.c 7 Apr 2007 16:18:53 -0000       1.10
+++ container.c 29 Apr 2007 13:13:03 -0000      1.11
@@ -1166,7 +1166,8 @@
    if (im)
      {
        EMapWindow(ct->icon_win);
-       EImageRenderPixmaps(im, ct->icon_win, 0, &pmap, &mask, 0, 0);
+       EImageRenderPixmaps(im, ct->icon_win, EIMAGE_HIGH_MASK_THR,
+                           &pmap, &mask, 0, 0);
        ESetWindowBackgroundPixmap(ct->icon_win, pmap);
        EShapeCombineMask(ct->icon_win, ShapeBounding, 0, 0, mask, ShapeSet);
        EImagePixmapFree(pmap);
===================================================================
RCS file: /cvs/e/e16/e/src/eimage.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- eimage.c    7 Apr 2007 16:18:53 -0000       1.15
+++ eimage.c    29 Apr 2007 13:13:03 -0000      1.16
@@ -56,8 +56,12 @@
 static void
 _EImageFlagsSet(int flags)
 {
-   imlib_context_set_anti_alias((flags & EIMAGE_ANTI_ALIAS) ? 1 : 0);
-   imlib_context_set_blend((flags & EIMAGE_BLEND) ? 1 : 0);
+   if (flags & EIMAGE_ANTI_ALIAS)
+      imlib_context_set_anti_alias(1);
+   if (flags & EIMAGE_BLEND)
+      imlib_context_set_blend(1);
+   if (flags & EIMAGE_HIGH_MASK_THR)
+      imlib_context_set_mask_alpha_threshold(128);
 }
 
 static void
@@ -65,6 +69,7 @@
 {
    imlib_context_set_anti_alias(0);
    imlib_context_set_blend(0);
+   imlib_context_set_mask_alpha_threshold(Conf.testing.mask_alpha_threshold);
 }
 
 EImage             *
===================================================================
RCS file: /cvs/e/e16/e/src/eimage.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- eimage.h    7 Apr 2007 16:18:53 -0000       1.9
+++ eimage.h    29 Apr 2007 13:13:03 -0000      1.10
@@ -36,6 +36,7 @@
 
 #define EIMAGE_BLEND            0x01
 #define EIMAGE_ANTI_ALIAS       0x02
+#define EIMAGE_HIGH_MASK_THR    0x04
 
 void                EImageInit(Display * dpy);
 



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to