Rebase against 6790d825d1b2c41de73ffe5cb5df28c1d1cc8878.

This commit is contained in:
Sebastian Lackner
2015-11-25 21:57:01 +01:00
parent 67b1817720
commit 6f9e2dae7d
9 changed files with 69 additions and 145 deletions

View File

@@ -1,4 +1,4 @@
From c4a8e65a698c608dd491a0318116fa875b8362ba Mon Sep 17 00:00:00 2001
From 6d947439d536cbf2f0505113439577f346575707 Mon Sep 17 00:00:00 2001
From: Sebastian Lackner <sebastian@fds-team.de>
Date: Fri, 27 Feb 2015 22:37:16 +0100
Subject: user32: Enforce that surfaces are flushed after ReleaseDC.
@@ -8,11 +8,10 @@ the window doesn't update properly. Can be reproduced for example with:
https://www-user.tu-chemnitz.de/~heha/petzold/ch20c.htm
---
dlls/user32/painting.c | 1 +
dlls/user32/win.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
1 file changed, 1 insertion(+)
diff --git a/dlls/user32/painting.c b/dlls/user32/painting.c
index 5c1dc69..7be594f 100644
index 1dea98d..7f0e015 100644
--- a/dlls/user32/painting.c
+++ b/dlls/user32/painting.c
@@ -1116,6 +1116,7 @@ HDC WINAPI GetWindowDC( HWND hwnd )
@@ -23,19 +22,6 @@ index 5c1dc69..7be594f 100644
return release_dc( hwnd, hdc, FALSE );
}
diff --git a/dlls/user32/win.c b/dlls/user32/win.c
index 0516193..5f99e43 100644
--- a/dlls/user32/win.c
+++ b/dlls/user32/win.c
@@ -598,7 +598,7 @@ void flush_window_surfaces( BOOL idle )
now = GetTickCount();
if (idle) last_idle = now;
/* if not idle, we only flush if there's evidence that the app never goes idle */
- else if ((int)(now - last_idle) < 1000) goto done;
+ else if ((int)(now - last_idle) < 100) goto done;
LIST_FOR_EACH_ENTRY( surface, &window_surfaces, struct window_surface, entry )
surface->funcs->flush( surface );
--
2.3.0
2.6.2