summaryrefslogtreecommitdiffstats
path: root/demos/qtdemo
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond@trolltech.com>2009-06-10 13:01:01 +0200
committerTrond Kjernåsen <trond@trolltech.com>2009-06-10 13:04:20 +0200
commit2255027e66a5b3284438de26ab64aaa941489665 (patch)
treeae4842182fe2551c3488dd5a46dc32462f90b0af /demos/qtdemo
parent941a03814a5f8f7be93425f71ee65a4222d16899 (diff)
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 883b0fbd08..048cb98b17 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");