Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        E.h eimage.c main.c mod-misc.c setup.c 


Log Message:
Set mask alpha threshold, if possible.

===================================================================
RCS file: /cvs/e/e16/e/src/E.h,v
retrieving revision 1.566
retrieving revision 1.567
diff -u -3 -r1.566 -r1.567
--- E.h 11 Sep 2006 18:10:27 -0000      1.566
+++ E.h 19 Sep 2006 16:55:16 -0000      1.567
@@ -411,6 +411,7 @@
       char                argb_clients;
       char                argb_clients_inherit_attr;
       char                use_sync;
+      int                 mask_alpha_threshold;
    } testing;
 
    char                autosave;
===================================================================
RCS file: /cvs/e/e16/e/src/eimage.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- eimage.c    28 Aug 2006 22:46:22 -0000      1.8
+++ eimage.c    19 Sep 2006 16:55:16 -0000      1.9
@@ -45,6 +45,10 @@
    imlib_context_set_visual(_default_vis);
    imlib_context_set_colormap(_default_cmap);
 
+#ifdef HAVE_IMLIB_CONTEXT_SET_MASK_ALPHA_THRESHOLD
+   imlib_context_set_mask_alpha_threshold(Conf.testing.mask_alpha_threshold);
+#endif
+
    imlib_context_set_dither(1);
 }
 
===================================================================
RCS file: /cvs/e/e16/e/src/main.c,v
retrieving revision 1.151
retrieving revision 1.152
diff -u -3 -r1.151 -r1.152
--- main.c      10 Sep 2006 14:29:05 -0000      1.151
+++ main.c      19 Sep 2006 16:55:16 -0000      1.152
@@ -24,6 +24,7 @@
 #include "E.h"
 #include "desktops.h"
 #include "dialog.h"
+#include "eimage.h"
 #include "emodule.h"
 #include "file.h"
 #include "hints.h"
@@ -244,6 +245,7 @@
    MapUnmap(0);
 
    /* Move elsewhere? */
+   EImageInit(disp);
    HintsInit();
    CommsInit();
    SessionInit();
===================================================================
RCS file: /cvs/e/e16/e/src/mod-misc.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -3 -r1.44 -r1.45
--- mod-misc.c  10 Sep 2006 14:29:05 -0000      1.44
+++ mod-misc.c  19 Sep 2006 16:55:16 -0000      1.45
@@ -162,6 +162,7 @@
    CFG_ITEM_BOOL(Conf, testing.argb_clients, 0),
    CFG_ITEM_BOOL(Conf, testing.argb_clients_inherit_attr, 0),
    CFG_ITEM_BOOL(Conf, testing.use_sync, 0),
+   CFG_ITEM_INT(Conf, testing.mask_alpha_threshold, 8),
 
    CFG_ITEM_BOOL(Conf, autosave, 1),
    CFG_ITEM_BOOL(Conf, memory_paranoia, 1),
===================================================================
RCS file: /cvs/e/e16/e/src/setup.c,v
retrieving revision 1.178
retrieving revision 1.179
diff -u -3 -r1.178 -r1.179
--- setup.c     11 Sep 2006 17:31:11 -0000      1.178
+++ setup.c     19 Sep 2006 16:55:16 -0000      1.179
@@ -22,7 +22,6 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 #include "E.h"
-#include "eimage.h"
 #include "ewins.h"
 #include "screen.h"
 #include "xwin.h"
@@ -229,9 +228,6 @@
        VRoot.w = RRoot.w;
        VRoot.h = RRoot.h;
      }
-
-   /* Initialise image handling */
-   EImageInit(disp);
 
    /* Initialise event handling */
    EventsInit();



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to