X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fsurface.cc;h=9dfb88898043faaac22541e4060c4bbb03e63649;hb=dddac554808d7352a06733938cfddc19839b99d0;hp=4f6ef3862453015fddc0c53ae89d1d0a5f537b47;hpb=0348a2f3abd2334f5f5812c5fb45c1b4fffb46a5;p=chaz%2Fopenbox diff --git a/otk/surface.cc b/otk/surface.cc index 4f6ef386..9dfb8889 100644 --- a/otk/surface.cc +++ b/otk/surface.cc @@ -39,7 +39,6 @@ void Surface::setPixmap(const RenderColor &color) void Surface::setPixmap(XImage *image) { - printf("SET PIXMAP\n"); assert(image->width == _size.x()); assert(image->height == _size.y()); @@ -58,9 +57,11 @@ void Surface::createObjects() _pixmap = XCreatePixmap(**display, info->rootWindow(), _size.x(), _size.y(), info->depth()); + assert(_pixmap != None); _xftdraw = XftDrawCreate(**display, _pixmap, info->visual(), info->colormap()); + assert(_xftdraw); } void Surface::destroyObjects()