summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2012-02-16 14:28:54 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-02-16 19:32:59 (GMT)
commit1482b41690861e4f31d0b6693fff0f4da2389015 (patch)
tree2e8243b82fa5d1b4e71de47ef87e1ef9bc38a8ce /src/corelib
parent5ffac0cfc732b994e60af0b6b965b1780ca41f2e (diff)
downloadQt-1482b41690861e4f31d0b6693fff0f4da2389015.zip
Qt-1482b41690861e4f31d0b6693fff0f4da2389015.tar.gz
Qt-1482b41690861e4f31d0b6693fff0f4da2389015.tar.bz2
Fix Windows timer performance regression
This fixes a Windows timer performance regression caused by 74251fb0fc57b1e0f7db0b561e4aa4c0347f6f37. This regression causes a degradation in timer precision which can cause animations to not be as smooth as well as negatively impact timing sensitive code. Change-Id: I2821fde66799a5b1e9994e823a7dc56c91148742 Reviewed-by: Jonathan Liu <net147@gmail.com> Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com> Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/kernel/qeventdispatcher_win.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qeventdispatcher_win.cpp b/src/corelib/kernel/qeventdispatcher_win.cpp
index 73a82f0..2bad28f 100644
--- a/src/corelib/kernel/qeventdispatcher_win.cpp
+++ b/src/corelib/kernel/qeventdispatcher_win.cpp
@@ -321,7 +321,7 @@ static void resolveTimerAPI()
{
static bool triedResolve = false;
if (!triedResolve) {
-#ifndef Q_OS_WINCE
+#ifdef Q_OS_WINCE
QSystemLibrary library(QLatin1String("Mmtimer"));
#else
QSystemLibrary library(QLatin1String("winmm"));