Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        backgrounds.c config.c 


Log Message:
Fix backgrounds with only foreground image.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/backgrounds.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- backgrounds.c       11 Oct 2004 20:28:55 -0000      1.7
+++ backgrounds.c       17 Dec 2004 17:25:48 -0000      1.8
@@ -480,7 +480,7 @@
             /* The rest that require some more work */
             dpmap = ECreatePixmap(disp, win, rw, rh, depth);
             gc = XCreateGC(disp, dpmap, 0, &gcv);
-            if (!bg->bg_tile)
+            if (!hasbg || !bg->bg_tile)
               {
                  XSetForeground(disp, gc, bg->bg_solid.pixel);
                  XFillRectangle(disp, dpmap, gc, 0, 0, rw, rh);
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/config.c,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -3 -r1.119 -r1.120
--- config.c    4 Dec 2004 12:38:18 -0000       1.119
+++ config.c    17 Dec 2004 17:25:51 -0000      1.120
@@ -1670,6 +1670,7 @@
    char                s1[FILEPATH_LEN_MAX];
    char                s2[FILEPATH_LEN_MAX];
    int                 ii1;
+   int                 r, g, b;
    int                 i1 = 0, i2 = 0, i3 = 0, i4 = 0, i5 = 0, i6 = 0;
    int                 j1 = 0, j2 = 0, j3 = 0, j4 = 0, j5 = 0;
    char               *bg1 = 0;
@@ -1816,9 +1817,9 @@
               }
             break;
          case BG_RGB:
-            i1 = i2 = i3 = 0;
-            sscanf(s, "%4000s %d %d %d", s1, &i1, &i2, &i3);
-            ESetColor(&xclr, i1, i2, i3);
+            r = g = b = 0;
+            sscanf(s, "%4000s %d %d %d", s1, &r, &g, &b);
+            ESetColor(&xclr, r, g, b);
             if (ignore)
                bg->bg_solid = xclr;
             break;




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to