summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qt_x11_p.h
diff options
context:
space:
mode:
authorFredrik Höglund <fredrik@kde.org>2009-10-27 14:25:46 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-10-27 14:36:08 (GMT)
commitc6218e0e9b64e53391e3e0ddc4988f4f079712eb (patch)
tree4acf49b73ab1d63134feb152135955da5388fe09 /src/gui/kernel/qt_x11_p.h
parentabfee117ec2dd5ad5be3b1c497a12f884b28568d (diff)
downloadQt-c6218e0e9b64e53391e3e0ddc4988f4f079712eb.zip
Qt-c6218e0e9b64e53391e3e0ddc4988f4f079712eb.tar.gz
Qt-c6218e0e9b64e53391e3e0ddc4988f4f079712eb.tar.bz2
Use shared memory images when shared pixmaps are not available.
Modern graphics drivers tend to disable shared memory pixmaps, since rendering operations often can't be accelerated by the GPU when the pixmap data is pinned in system RAM. Use XShmPutImage() to flush the window surface when this is case, instead of falling back to the slower XPutImage() method. Merge-request: 1684 Reviewed-by: Samuel Rødal <sroedal@trolltech.com>
Diffstat (limited to 'src/gui/kernel/qt_x11_p.h')
-rw-r--r--src/gui/kernel/qt_x11_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qt_x11_p.h b/src/gui/kernel/qt_x11_p.h
index 61acbac..9f08dc6 100644
--- a/src/gui/kernel/qt_x11_p.h
+++ b/src/gui/kernel/qt_x11_p.h
@@ -428,6 +428,7 @@ struct QX11Data
// true if Qt is compiled w/ MIT-SHM support and MIT-SHM is supported on the connected Display
bool use_mitshm;
+ bool use_mitshm_pixmaps;
int mitshm_major;
// true if Qt is compiled w/ Tablet support and we have a tablet.