From c9ea0a95c038f2ed95a725a3d2c97aa4e725c263 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 19 Aug 2013 22:15:03 +0200 Subject: Revert "High-frequency timer does nothing with sleep interval, it turns out" This reverts commit c6e5a5f449f95a833b826ebfae870a2e519fcfa0. Actually, it does for Sleep(x) where x > 1 and x < 15, but only for Windows newer than XP. Next time let's check for ourselves instead of using obsolete info from the 'net... --- facetracknoir/main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'facetracknoir') diff --git a/facetracknoir/main.cpp b/facetracknoir/main.cpp index d4e05ab7..fd0ca1cc 100644 --- a/facetracknoir/main.cpp +++ b/facetracknoir/main.cpp @@ -40,6 +40,9 @@ #endif int main(int argc, char** argv) { +#if defined(_WIN32) + (void) timeBeginPeriod(1); +#endif QApplication app(argc, argv); QFont font; font.setFamily(font.defaultFamily()); -- cgit v1.2.3