diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2013-08-19 22:15:03 +0200 | 
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-08-19 22:15:03 +0200 | 
| commit | c9ea0a95c038f2ed95a725a3d2c97aa4e725c263 (patch) | |
| tree | d3e6a4b6cb1216c9b15821e637c57b09e6d9d58d | |
| parent | 60ac7c17eb4786949a130099a4ef26af00c2ea4f (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...
| -rw-r--r-- | facetracknoir/main.cpp | 3 | 
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());
 | 
