| NOT & YOU BASTARD

This commit is contained in:
Dana Jansens 2003-02-13 10:30:17 +00:00
parent 07305ec718
commit e71fb6c66e

View 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;