]> Dogcows Code - chaz/openbox/blobdiff - otk/surface.cc
support pseudocolor and greyscale displays by, using solid colors instead of gradients
[chaz/openbox] / otk / surface.cc
index 70acf70ac5f16289897bcdad0be7c99f94c94928..9dfb88898043faaac22541e4060c4bbb03e63649 100644 (file)
@@ -57,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()
This page took 0.024691 seconds and 4 git commands to generate.