| NOT & YOU BASTARD
This commit is contained in:
parent
07305ec718
commit
e71fb6c66e
1 changed files with 2 additions and 2 deletions
|
@ -46,8 +46,8 @@ void Surface::setPixmap(const RenderColor &color)
|
||||||
XFillRectangle(**display, _pixmap, color.gc(), 0, 0,
|
XFillRectangle(**display, _pixmap, color.gc(), 0, 0,
|
||||||
_size.width(), _size.height());
|
_size.width(), _size.height());
|
||||||
|
|
||||||
pixel32 val = (color.red() << default_red_shift) &
|
pixel32 val = (color.red() << default_red_shift) |
|
||||||
(color.green() << default_green_shift) &
|
(color.green() << default_green_shift) |
|
||||||
(color.blue() << default_blue_shift);
|
(color.blue() << default_blue_shift);
|
||||||
for (unsigned int i = 0, s = _size.width() * _size.height(); i < s; ++i)
|
for (unsigned int i = 0, s = _size.width() * _size.height(); i < s; ++i)
|
||||||
_pixel_data[i] = val;
|
_pixel_data[i] = val;
|
||||||
|
|
Loading…
Reference in a new issue