Alistair Leslie-Hughes : gdi32: Don't override FontSubstitutes on a DPI only change.

Alexandre Julliard julliard at winehq.org
Tue Oct 26 09:40:29 CDT 2021


Module: wine
Branch: stable
Commit: 2f06215a8eb364ba5256ae8e86fc6735f7f05769
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=2f06215a8eb364ba5256ae8e86fc6735f7f05769

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Thu May 27 15:50:48 2021 +1000

gdi32: Don't override FontSubstitutes on a DPI only change.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=36010
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 7763efa347327868f6c8ba0c91f60f53a885688a)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/gdi32/font.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/gdi32/font.c b/dlls/gdi32/font.c
index b6840d8d809..6300e6e1251 100644
--- a/dlls/gdi32/font.c
+++ b/dlls/gdi32/font.c
@@ -2485,7 +2485,8 @@ static void update_codepage(void)
                 add_font_list(hkey, &nls_update_font_list[i], screen_dpi);
                 RegCloseKey(hkey);
             }
-            if (!RegCreateKeyW( HKEY_LOCAL_MACHINE,
+            /* Only update these if the Codepage changed. */
+            if (strcmp( buf, cpbuf ) && !RegCreateKeyW( HKEY_LOCAL_MACHINE,
                                 L"Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes", &hkey ))
             {
                 RegSetValueExA(hkey, "MS Shell Dlg", 0, REG_SZ, (const BYTE *)nls_update_font_list[i].shelldlg,




More information about the wine-cvs mailing list