diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-12 21:06:45 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-12 21:06:45 +0000 |
commit | 82d33e27245a5951dc08db23d412a7b97d981d06 (patch) | |
tree | 7fec5fcdb8c9402791ec701e1a951f0d9eccf196 /qtinterface/tqpaintdevice.cpp | |
parent | 4e7d7fc5e8a1a64520d965463ddfbb59cde2cfcf (diff) | |
download | tqtinterface-82d33e27245a5951dc08db23d412a7b97d981d06.tar.gz tqtinterface-82d33e27245a5951dc08db23d412a7b97d981d06.zip |
Qt3 compilation fix
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface@1162848 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'qtinterface/tqpaintdevice.cpp')
-rw-r--r-- | qtinterface/tqpaintdevice.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/qtinterface/tqpaintdevice.cpp b/qtinterface/tqpaintdevice.cpp index d97a3d4..846342a 100644 --- a/qtinterface/tqpaintdevice.cpp +++ b/qtinterface/tqpaintdevice.cpp @@ -42,6 +42,8 @@ Boston, MA 02110-1301, USA. #include <X11/Xos.h> #include <X11/Xatom.h> +#include <Qt/qcolormap.h> + /*! Returns the window system handle of the paint device for XRender support. Use of this function is not portable. This function will @@ -75,8 +77,11 @@ static GC create_gc( int scrn, bool monochrome ) } else { Window w; XSetWindowAttributes a; - a.background_pixel = Qt::black.pixel( scrn ); - a.border_pixel = Qt::black.pixel( scrn ); + QColormap cmap_background = QColormap::instance( scrn ); + QColormap cmap_border = QColormap::instance( scrn ); + a.background_pixel = cmap_background.pixel( Qt::black ); + a.border_pixel = cmap_border.pixel( Qt::black ); + a.colormap = QPaintDevice::x11AppColormap( scrn ); w = XCreateWindow( appDpy, RootWindow( appDpy, scrn ), 0, 0, 100, 100, 0, QPaintDevice::x11AppDepth( scrn ), InputOutput, |