]> Dogcows Code - chaz/openbox/commitdiff
allocate the border_color's gc
authorDana Jansens <danakj@orodu.net>
Wed, 21 May 2003 02:59:02 +0000 (02:59 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 21 May 2003 02:59:02 +0000 (02:59 +0000)
render/gradient.c

index 695d86445f939a2996b30cff1d09956beee72a7f..8b4cd9f8c7d6dbec120cdce5324109a0a8ee65d2 100644 (file)
@@ -379,9 +379,12 @@ void gradient_solid(Appearance *l, int x, int y, int w, int h)
         }
         break;
     case Flat:
-        if (sp->border)
+        if (sp->border) {
+            if (sp->border_color->gc == None)
+                color_allocate_gc(sp->border_color);
             XDrawRectangle(ob_display, l->pixmap, sp->border_color->gc,
                            left, top, right, bottom);
+        }
         break;
     default:  
         g_assert_not_reached(); /* unhandled ReliefType */
This page took 0.02629 seconds and 4 git commands to generate.