Author: jimtabor
Date: Mon Oct 17 01:33:55 2011
New Revision: 54170

URL: http://svn.reactos.org/svn/reactos?rev=54170&view=rev
Log:
[Win32k]
- Fix timer resolution so it will run every 10 ms +/-1ms. This is the default 
setting when the user provides less than 10 ms for the period to wait for the 
timer event. Pass wine test_timers_no_wnd.

Modified:
    trunk/reactos/subsystems/win32/win32k/ntuser/timer.c

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/timer.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/timer.c?rev=54170&r1=54169&r2=54170&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/timer.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/timer.c [iso-8859-1] Mon Oct 
17 01:33:55 2011
@@ -187,7 +187,7 @@
   PTIMER pTmr;
   UINT Ret = IDEvent;
   LARGE_INTEGER DueTime;
-  DueTime.QuadPart = (LONGLONG)(-10000); // 1024hz .9765625 ms set to 1.1 ms
+  DueTime.QuadPart = (LONGLONG)(-97656); // 1024hz .9765625 ms set to 10.0 ms
 
 #if 0
   /* Windows NT/2k/XP behaviour */
@@ -209,7 +209,7 @@
   if (Elapse < 10)
   {
      TRACE("Adjusting uElapse\n");
-     Elapse = 10;
+     Elapse = 10; // 1024hz .9765625 ms, set to 10.0 ms (+/-)1 ms
   }
 
   /* Passing an IDEvent of 0 and the SetTimer returns 1.
@@ -448,7 +448,7 @@
   KeQueryTickCount(&TickCount);
   Time = MsqCalculateMessageTime(&TickCount);
 
-  DueTime.QuadPart = (LONGLONG)(-10000); // 1024hz .9765625 ms set to 1.1 ms
+  DueTime.QuadPart = (LONGLONG)(-97656); // 1024hz .9765625 ms set to 10.0 ms
 
   while(pLE != &TimersListHead)
   {


Reply via email to