diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2010-03-01 12:02:13 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2010-03-01 12:02:13 (GMT) |
commit | bcb2ed5667bd957476e3b62ef3a479a26f1252f3 (patch) | |
tree | 8fbe1fc3590ab7e504282469b7fcf73dc9ef6939 /demos/declarative/minehunt/main.cpp | |
parent | 4cc9d165663728cb08b3269ea88a584410b79b70 (diff) | |
download | Qt-bcb2ed5667bd957476e3b62ef3a479a26f1252f3.zip Qt-bcb2ed5667bd957476e3b62ef3a479a26f1252f3.tar.gz Qt-bcb2ed5667bd957476e3b62ef3a479a26f1252f3.tar.bz2 |
Fix minehunt demo
Game works again, and the issue with X11 native rendering being
abysmally slow has been 'fixed'.
Diffstat (limited to 'demos/declarative/minehunt/main.cpp')
-rw-r--r-- | demos/declarative/minehunt/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/demos/declarative/minehunt/main.cpp b/demos/declarative/minehunt/main.cpp index 37dc8a5..e7a1d7c 100644 --- a/demos/declarative/minehunt/main.cpp +++ b/demos/declarative/minehunt/main.cpp @@ -317,6 +317,10 @@ bool MyWidget::flag(int row, int col) int main(int argc, char ** argv) { +#ifdef Q_WS_X11 + // native on X11 is terrible for this demo. + QApplication::setGraphicsSystem("raster"); +#endif QApplication app(argc, argv); bool frameless = false; |