]> Dogcows Code - chaz/openbox/commitdiff
fix rendering argb textures on solid backgrounds
authorDana Jansens <danakj@orodu.net>
Sun, 20 May 2007 22:06:03 +0000 (22:06 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 20 May 2007 22:06:03 +0000 (22:06 +0000)
render/render.c

index 82e6f96e3d155d1a0830eca6a7742ded5a0f9a8e..8623455f6c06091e6c55335ca48531eb393b8f5b 100644 (file)
@@ -40,7 +40,7 @@ static void pixel_data_to_pixmap(RrAppearance *l,
 
 Pixmap RrPaintPixmap(RrAppearance *a, gint w, gint h)
 {
-    gint i, transferred = 0, sw, sh, partial_w, partial_h;
+    gint i, transferred = 0, sw, sh, partial_w, partial_h, force_transfer = 0;
     RrPixel32 *source, *dest;
     Pixmap oldp = None;
     RrRect tarea; /* area in which to draw textures */
@@ -160,14 +160,18 @@ Pixmap RrPaintPixmap(RrAppearance *a, gint w, gint h)
                         &a->texture[i].data.rgba,
                         a->w, a->h,
                         &tarea);
+            force_transfer = 1;
         break;
         }
     }
 
     if (!transferred) {
         transferred = 1;
-        if ((a->surface.grad != RR_SURFACE_SOLID) || (a->surface.interlaced))
+        if ((a->surface.grad != RR_SURFACE_SOLID) || (a->surface.interlaced) ||
+            force_transfer)
+        {
             pixel_data_to_pixmap(a, 0, 0, w, h);
+        }
     }
 
     return oldp;
This page took 0.030572 seconds and 4 git commands to generate.