From 1482b41690861e4f31d0b6693fff0f4da2389015 Mon Sep 17 00:00:00 2001 From: Jonathan Liu Date: Fri, 17 Feb 2012 01:28:54 +1100 Subject: Fix Windows timer performance regression MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Konstantin Ritt Reviewed-by: Jan-Arve Sæther --- src/corelib/kernel/qeventdispatcher_win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")); -- cgit v0.12