aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/qt4/qt4-embedded-gles-4.6.3/cursor-hack.diff
blob: e297e520a06a83299968eacdc732074d6d870100 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Patch originally done by Bin Liu, rediffed by Koen Kooi for Qt 4.6.2

This patch is a first step to get a working cursor when using the powervr driver, it flickers when hovering over a QGLWidget, but still better than no cursor at all

--- /tmp/pvreglscreen.cpp	2010-04-19 09:30:32.000000000 +0200
+++ qt-everywhere-opensource-src-4.6.2/src/plugins/gfxdrivers/powervr/pvreglscreen/pvreglscreen.cpp	2010-04-19 09:31:30.000000000 +0200
@@ -85,6 +85,9 @@
 bool PvrEglScreen::initDevice()
 {
     openTty();
+#ifndef QT_NO_QWS_CURSOR
+    QScreenCursor::initSoftwareCursor();
+#endif
     return true;
 }
 
--- /tmp/qwindowsystem_qws.cpp	2010-04-19 09:32:47.000000000 +0200
+++ qt-everywhere-opensource-src-4.6.2/src/gui/embedded/qwindowsystem_qws.cpp	2010-04-19 09:33:30.000000000 +0200
@@ -3501,7 +3501,6 @@
         }
 
 #ifdef QT_QWS_CLIENTBLIT
-#ifdef QT_NO_QWS_CURSOR
         // This optimization only really works when there isn't a crazy cursor
         // wizzing around.
         QRegion directPaint = (r - transparentRegion); // in gloal coords
@@ -3513,7 +3512,6 @@
                                          QWSRegionEvent::DirectPaint, id);
         }
 #endif
-#endif
     }
 
     if (doLock)