summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@trolltech.com>2009-07-15 10:04:15 (GMT)
committerJoerg Bornemann <joerg.bornemann@trolltech.com>2009-07-15 10:06:33 (GMT)
commitc358eab1eb68388f9cf4a921cd6ef316bb37a3a8 (patch)
tree2a7bf1222f739ffdabd9678dcf95306c6cdfcf4b /src
parenta72c30020bdadbe0d82e583e17acd25715604f7b (diff)
downloadQt-c358eab1eb68388f9cf4a921cd6ef316bb37a3a8.zip
Qt-c358eab1eb68388f9cf4a921cd6ef316bb37a3a8.tar.gz
Qt-c358eab1eb68388f9cf4a921cd6ef316bb37a3a8.tar.bz2
repair the mouse cursor on Windows CE
The LoadImage function doesn't seem to work for loading cursors from resources. Also, it isn't marked as deprecated for Windows CE like on desktop Windows. So we'll just use it again. Reviewed-by: thartman
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qcursor_win.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kernel/qcursor_win.cpp b/src/gui/kernel/qcursor_win.cpp
index db00835..26e395c 100644
--- a/src/gui/kernel/qcursor_win.cpp
+++ b/src/gui/kernel/qcursor_win.cpp
@@ -476,7 +476,11 @@ void QCursorData::update()
qWarning("QCursor::update: Invalid cursor shape %d", cshape);
return;
}
+#ifdef Q_WS_WINCE
+ hcurs = LoadCursor(0, sh);
+#else
hcurs = (HCURSOR)LoadImage(0, sh, IMAGE_CURSOR, 0, 0, LR_DEFAULTSIZE | LR_SHARED);
+#endif
}
QT_END_NAMESPACE