diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-03 07:41:25 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-03 07:41:25 +0000 |
| commit | afb8a28120b21569934202968283e65a173c3bd8 (patch) | |
| tree | 39156f1a82487e728e0dbff8c3b9594edf67c9f5 /otk/surface.cc | |
| parent | e6bfddf849009bef7bbb75be5147b4a533fa1ad2 (diff) | |
support pseudocolor and greyscale displays by, using solid colors instead of gradients
Diffstat (limited to 'otk/surface.cc')
| -rw-r--r-- | otk/surface.cc | 2 |
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() |
