X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fsurface.cc;h=70acf70ac5f16289897bcdad0be7c99f94c94928;hb=83bfa01b0bf361d4a2354e5ef0f48ed759e0eab3;hp=99fa82b04bf7e329569c7e71278378d7c2782b00;hpb=d8d9b42777ace234f3471918e1210062578f8188;p=chaz%2Fopenbox diff --git a/otk/surface.cc b/otk/surface.cc index 99fa82b0..70acf70a 100644 --- a/otk/surface.cc +++ b/otk/surface.cc @@ -7,7 +7,7 @@ #include "surface.hh" #include "display.hh" #include "screeninfo.hh" -#include "gccache.hh" +#include "rendercolor.hh" extern "C" { #include @@ -28,19 +28,17 @@ Surface::~Surface() destroyObjects(); } -void Surface::setPixmap(const Color &color) +void Surface::setPixmap(const RenderColor &color) { if (_pixmap == None) createObjects(); - Pen p(color); - XFillRectangle(**display, _pixmap, p.gc(), 0, 0, + XFillRectangle(**display, _pixmap, color.gc(), 0, 0, _size.x(), _size.y()); } void Surface::setPixmap(XImage *image) { - printf("SET PIXMAP\n"); assert(image->width == _size.x()); assert(image->height == _size.y());