From afb8a28120b21569934202968283e65a173c3bd8 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 3 Feb 2003 07:41:25 +0000 Subject: support pseudocolor and greyscale displays by, using solid colors instead of gradients --- otk/surface.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'otk/surface.cc') 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() -- cgit v1.2.3