Update timer patch

This commit is contained in:
Michael Müller
2014-05-02 20:50:58 +02:00
parent d787be6d20
commit 036250b6da
4 changed files with 28 additions and 28 deletions

View File

@@ -1,25 +0,0 @@
From ed6d82faea2efb04dda99738f8eea9ac8c9de1df Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
Date: Thu, 9 Jan 2014 02:54:31 +0100
Subject: user32: Decrease minimum SetTimer interval from 15 to 5 ms
---
dlls/user32/message.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/user32/message.c b/dlls/user32/message.c
index 2cd1472..8a4aa7d 100644
--- a/dlls/user32/message.c
+++ b/dlls/user32/message.c
@@ -4407,7 +4407,7 @@ UINT_PTR WINAPI SetTimer( HWND hwnd, UINT_PTR id, UINT timeout, TIMERPROC proc )
/* MSDN states that the minimum timeout should be USER_TIMER_MINIMUM (10.0 ms), but testing
* indicates that the true minimum is closer to 15.6 ms. */
- timeout = min( max( 15, timeout ), USER_TIMER_MAXIMUM );
+ timeout = min( max( 5, timeout ), USER_TIMER_MAXIMUM );
SERVER_START_REQ( set_win_timer )
{
--
1.8.3.2

View File

@@ -0,0 +1,25 @@
From 70d9c625738a8c368e6276be3bed8baab9103083 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
Date: Fri, 2 May 2014 20:46:19 +0200
Subject: user32: Decrease minimum SetTimer interval to 5 ms
---
dlls/user32/message.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/user32/message.c b/dlls/user32/message.c
index be5d995..a371f72 100644
--- a/dlls/user32/message.c
+++ b/dlls/user32/message.c
@@ -4439,7 +4439,7 @@ UINT_PTR WINAPI SetTimer( HWND hwnd, UINT_PTR id, UINT timeout, TIMERPROC proc )
if (proc) winproc = WINPROC_AllocProc( (WNDPROC)proc, FALSE );
- timeout = min( max( USER_TIMER_MINIMUM, timeout ), USER_TIMER_MAXIMUM );
+ timeout = min( max( 5, timeout ), USER_TIMER_MAXIMUM );
SERVER_START_REQ( set_win_timer )
{
--
1.8.3.2

View File

@@ -1,3 +1,3 @@
Revision: 1
Revision: 2
Author: Michael Müller
Title: Decrease minimum SetTimer interval from 15 to 5 ms.
Title: Decrease minimum SetTimer interval to 5 ms.