Change Details
qball/patches/001-disable-mouse.patch |
1 | | diff -ur qball-1.1.or/QBall/main.cpp qball-1.1/QBall/main.cpp |
2 | | +++ qball-1.1/QBall/main.cpp 2010-12-14 21:16:23.749898252 +0300 |
3 | | @@ -1,6 +1,10 @@ |
4 | | #include <QtGui/QApplication> |
5 | | #include "mainwindow.h" |
6 | | |
7 | | +#if defined(Q_WS_QWS) |
8 | | +#include <QtGui/QWSServer> |
9 | | +#endif |
10 | | + |
11 | | int main(int argc, char *argv[]) |
12 | | { |
13 | | QApplication a(argc, argv); |
14 | | @@ -14,6 +18,9 @@ |
15 | | //w.show(); |
16 | | w.showFullScreen(); |
17 | | #endif |
18 | | +#if defined(Q_WS_QWS) |
19 | | + QWSServer::setCursorVisible(false); |
20 | | +#endif |
21 | | //w.init(); |
22 | | //Gamestate *gamestate = new PlayingGamestate(&w); |
23 | | Gamestate *gamestate = new OptionsGamestate(&w); |
Download the corresponding diff file