Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        desktops.c iclass.c 


Log Message:
Fix redundant background pixmap generation at startup.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/desktops.c,v
retrieving revision 1.164
retrieving revision 1.165
diff -u -3 -r1.164 -r1.165
--- desktops.c  13 Aug 2005 16:23:59 -0000      1.164
+++ desktops.c  13 Aug 2005 23:05:40 -0000      1.165
@@ -850,6 +850,9 @@
    if (!bg)
       return;
 
+   if (BackgroundGetPixmap(bg) != None)
+      return;
+
    BackgroundSet(bg, EoGetWin(d), EoGetW(d), EoGetH(d));
    HintsSetRootInfo(EoGetWin(d),
                    BackgroundGetPixmap(bg), BackgroundGetColor(bg));
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/iclass.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -3 -r1.73 -r1.74
--- iclass.c    10 Aug 2005 15:31:48 -0000      1.73
+++ iclass.c    13 Aug 2005 23:05:40 -0000      1.74
@@ -83,7 +83,7 @@
    if (prev_alpha == -1)
      {
        prev_alpha = Conf.trans.alpha = transparency;
-       changed = 1;
+       changed = -1;
      }
    else
      {
@@ -98,6 +98,9 @@
    /* Generate the color modifier tables */
    TransparencyMakeColorModifier();
 
+   if (changed < 0)
+      return;
+
    if (prev_alpha == 0)
      {
        /* Hack to get tiled backgrounds regenerated at full size */




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to