diff options
author | Maurice Kalinowski <maurice.kalinowski@nokia.com> | 2009-11-06 06:56:56 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-11-06 13:07:38 (GMT) |
commit | 13077781b0e54b53c5610638b1ab7abfc021f263 (patch) | |
tree | c4167c64fa85fa8d72ec974ffa4f68b86044a707 | |
parent | e9ed3d523ecec3a9af58c78dbe3fbf4c7cc6d6fe (diff) | |
download | Qt-13077781b0e54b53c5610638b1ab7abfc021f263.zip Qt-13077781b0e54b53c5610638b1ab7abfc021f263.tar.gz Qt-13077781b0e54b53c5610638b1ab7abfc021f263.tar.bz2 |
fix painting on Windows CE
it seems the timer id ~0 is already used on windows ce or not available
at all. This has caused Qt to not receive the timer messages, causing
to not update.
Task-number: qtbug-5496
Reviewed-by: Gunnar Sletta
-rw-r--r-- | src/corelib/kernel/qeventdispatcher_win.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/kernel/qeventdispatcher_win.cpp b/src/corelib/kernel/qeventdispatcher_win.cpp index ccf5b96..29b7568 100644 --- a/src/corelib/kernel/qeventdispatcher_win.cpp +++ b/src/corelib/kernel/qeventdispatcher_win.cpp @@ -470,7 +470,7 @@ LRESULT CALLBACK qt_internal_proc(HWND hwnd, UINT message, WPARAM wp, LPARAM lp) } return 0; } else if (message == WM_TIMER) { - if (wp == ~0u) { + if (wp == ~1u) { KillTimer(d->internalHwnd, wp); int localSerialNumber = d->serialNumber; (void) d->wakeUps.fetchAndStoreRelease(0); @@ -488,7 +488,7 @@ LRESULT CALLBACK qt_internal_proc(HWND hwnd, UINT message, WPARAM wp, LPARAM lp) if (GetQueueStatus(QS_INPUT | QS_RAWINPUT | QS_TIMER) != 0) { // delay the next pass of sendPostedEvents() until we get the special // WM_TIMER, which allows all pending Windows messages to be processed - SetTimer(d->internalHwnd, ~0u, 0, 0); + SetTimer(d->internalHwnd, ~1u, 0, 0); } else { // nothing pending in the queue, let sendPostedEvents go through d->wakeUps.fetchAndStoreRelease(0); |