Added patch to send WM_PAINT event during dialog creation.

This commit is contained in:
Sebastian Lackner 2014-09-26 20:27:43 +02:00
parent a5250a0fc4
commit d8de3eb6fa
5 changed files with 50 additions and 1 deletions

View File

@ -35,8 +35,9 @@ Wine. All those differences are also documented on the
Included bugfixes and improvements
==================================
**Bugfixes and features included in the next upcoming release [2]:**
**Bugfixes and features included in the next upcoming release [3]:**
* Send WM_PAINT event during dialog creation ([Wine Bug #35652](http://bugs.winehq.org/show_bug.cgi?id=35652))
* Support for FIND_FIRST_EX_CASE_SENSITIVE flag in FindFirstFileExW
* Update a XIM candidate position when cursor location changes ([Wine Bug #30938](http://bugs.winehq.org/show_bug.cgi?id=30938))

1
debian/changelog vendored
View File

@ -3,6 +3,7 @@ wine-compholio (1.7.28) UNRELEASED; urgency=low
* Added patch to fix issues with over-the-spot input method.
* Added patch to fix winemenubuilder desktop icon wine path (when using multiple wine versions).
* Added patch to support FIND_FIRST_EX_CASE_SENSITIVE flag in FindFirstFileExW.
* Added patch to send WM_PAINT event during dialog creation.
-- Sebastian Lackner <sebastian@fds-team.de> Sun, 21 Sep 2014 01:44:14 +0200
wine-compholio (1.7.27) unstable; urgency=low

View File

@ -63,6 +63,7 @@ PATCHLIST := \
shell32-RunDLL_CallEntry16.ok \
shell32-SHCreateSessionKey.ok \
shlwapi-UrlCombine.ok \
user32-Dialog_Paint_Event.ok \
user32-GetSystemMetrics.ok \
user32-GetTipText.ok \
user32-WndProc.ok \
@ -996,6 +997,24 @@ shlwapi-UrlCombine.ok:
echo '+ { "shlwapi-UrlCombine", "Sebastian Lackner", "Workaround for broken implementation of shlwapi url functions." },'; \
) > shlwapi-UrlCombine.ok
# Patchset user32-Dialog_Paint_Event
# |
# | Included patches:
# | * Call UpdateWindow during DIALOG_CreateIndirect. [by Sebastian Lackner]
# |
# | This patchset fixes the following Wine bugs:
# | * [#35652] Send WM_PAINT event during dialog creation
# |
# | Modified files:
# | * dlls/user32/dialog.c
# |
.INTERMEDIATE: user32-Dialog_Paint_Event.ok
user32-Dialog_Paint_Event.ok:
$(call APPLY_FILE,user32-Dialog_Paint_Event/0001-user32-Call-UpdateWindow-during-DIALOG_CreateIndirec.patch)
@( \
echo '+ { "user32-Dialog_Paint_Event", "Sebastian Lackner", "Call UpdateWindow during DIALOG_CreateIndirect." },'; \
) > user32-Dialog_Paint_Event.ok
# Patchset user32-GetSystemMetrics
# |
# | Included patches:

View File

@ -0,0 +1,24 @@
From 3d286a43424fc20c3a8ccdfbbbf7ce84a2bb4300 Mon Sep 17 00:00:00 2001
From: Sebastian Lackner <sebastian@fds-team.de>
Date: Fri, 26 Sep 2014 20:24:50 +0200
Subject: user32: Call UpdateWindow() during DIALOG_CreateIndirect.
---
dlls/user32/dialog.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/user32/dialog.c b/dlls/user32/dialog.c
index 497d545..819af7a 100644
--- a/dlls/user32/dialog.c
+++ b/dlls/user32/dialog.c
@@ -714,6 +714,7 @@ static HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCVOID dlgTemplate,
if (template.style & WS_VISIBLE && !(GetWindowLongW( hwnd, GWL_STYLE ) & WS_VISIBLE))
{
ShowWindow( hwnd, SW_SHOWNORMAL ); /* SW_SHOW doesn't always work */
+ UpdateWindow( hwnd );
}
return hwnd;
}
--
2.1.1

View File

@ -0,0 +1,4 @@
Author: Sebastian Lackner
Subject: Call UpdateWindow during DIALOG_CreateIndirect.
Revision: 1
Fixes: [35652] Send WM_PAINT event during dialog creation