diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-13 10:30:17 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-13 10:30:17 +0000 |
| commit | e71fb6c66e2b08e1acca087448d99a226aa077f0 (patch) | |
| tree | 887eb56ae88b07008f87ade4d5082836cf103fba | |
| parent | 07305ec7188fd44f7b6543a3f1f53bc0db3b090d (diff) | |
| NOT & YOU BASTARD
| -rw-r--r-- | otk/surface.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/otk/surface.cc b/otk/surface.cc index b7aadd0f..cc225503 100644 --- a/otk/surface.cc +++ b/otk/surface.cc @@ -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; |
