summaryrefslogtreecommitdiffstats
path: root/demos/qtdemo
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond@trolltech.com>2009-06-10 11:01:01 (GMT)
committerTrond Kjernåsen <trond@trolltech.com>2009-06-10 11:04:20 (GMT)
commit2255027e66a5b3284438de26ab64aaa941489665 (patch)
treeae4842182fe2551c3488dd5a46dc32462f90b0af /demos/qtdemo
parent941a03814a5f8f7be93425f71ee65a4222d16899 (diff)
downloadQt-2255027e66a5b3284438de26ab64aaa941489665.zip
Qt-2255027e66a5b3284438de26ab64aaa941489665.tar.gz
Qt-2255027e66a5b3284438de26ab64aaa941489665.tar.bz2
Fixed non-working animations under X11 with the raster graphicssystem.
Reviewed-by: jbache
Diffstat (limited to 'demos/qtdemo')
-rw-r--r--demos/qtdemo/colors.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/qtdemo/colors.cpp b/demos/qtdemo/colors.cpp
index 883b0fb..048cb98 100644
--- a/demos/qtdemo/colors.cpp
+++ b/demos/qtdemo/colors.cpp
@@ -337,7 +337,7 @@ void Colors::detectSystemResources()
#if defined(Q_WS_X11)
// check if X render is present:
QPixmap tmp(1, 1);
- if (!tmp.x11PictureHandle()){
+ if (!tmp.x11PictureHandle() && tmp.paintEngine()->type() == QPaintEngine::X11){
Colors::xRenderPresent = false;
if (Colors::verbose)
qDebug("- X render not present");