summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-08-19 22:15:03 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-08-19 22:15:03 +0200
commitc9ea0a95c038f2ed95a725a3d2c97aa4e725c263 (patch)
treed3e6a4b6cb1216c9b15821e637c57b09e6d9d58d /facetracknoir
parent60ac7c17eb4786949a130099a4ef26af00c2ea4f (diff)
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...
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/main.cpp3
1 files changed, 3 insertions, 0 deletions
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());