]> Dogcows Code - chaz/openbox/commitdiff
| NOT & YOU BASTARD
authorDana Jansens <danakj@orodu.net>
Thu, 13 Feb 2003 10:30:17 +0000 (10:30 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 13 Feb 2003 10:30:17 +0000 (10:30 +0000)
otk/surface.cc

index b7aadd0ff5f004a94d6d519e3a96f5bfc2c74a72..cc2255030d660f3aca605fedd0f17c9d1eb0cd5c 100644 (file)
@@ -46,8 +46,8 @@ void Surface::setPixmap(const RenderColor &color)
   XFillRectangle(**display, _pixmap, color.gc(), 0, 0,
                  _size.width(), _size.height());
 
-  pixel32 val = (color.red() << default_red_shift) &
-    (color.green() << default_green_shift) &
+  pixel32 val = (color.red() << default_red_shift) |
+    (color.green() << default_green_shift) |
     (color.blue() << default_blue_shift);
   for (unsigned int i = 0, s = _size.width() * _size.height(); i < s; ++i)
     _pixel_data[i] = val;
This page took 0.024029 seconds and 4 git commands to generate.