summaryrefslogtreecommitdiff
path: root/otk/surface.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-03 07:41:25 +0000
committerDana Jansens <danakj@orodu.net>2003-02-03 07:41:25 +0000
commitafb8a28120b21569934202968283e65a173c3bd8 (patch)
tree39156f1a82487e728e0dbff8c3b9594edf67c9f5 /otk/surface.cc
parente6bfddf849009bef7bbb75be5147b4a533fa1ad2 (diff)
support pseudocolor and greyscale displays by, using solid colors instead of gradients
Diffstat (limited to 'otk/surface.cc')
-rw-r--r--otk/surface.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/otk/surface.cc b/otk/surface.cc
index 70acf70a..9dfb8889 100644
--- a/otk/surface.cc
+++ b/otk/surface.cc
@@ -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()