projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07305ec
)
| NOT & YOU BASTARD
author
Dana Jansens
<danakj@orodu.net>
Thu, 13 Feb 2003 10:30:17 +0000
(10:30 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Thu, 13 Feb 2003 10:30:17 +0000
(10:30 +0000)
otk/surface.cc
patch
|
blob
|
history
diff --git
a/otk/surface.cc
b/otk/surface.cc
index b7aadd0ff5f004a94d6d519e3a96f5bfc2c74a72..cc2255030d660f3aca605fedd0f17c9d1eb0cd5c 100644
(file)
--- 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;