You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-09-12 18:50:20 -07:00
Rebase against 948a6a47b8dbd0ddd86cad04de03f0e4ba81b65d.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 9c83eae2b95981ba4ca812bacbf116eaf412a218 Mon Sep 17 00:00:00 2001
|
||||
From 6de6fba2c1135044da2a9958df07772f00784de5 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
|
||||
Date: Thu, 5 Nov 2015 14:33:48 +0100
|
||||
Subject: [PATCH] winex11.drv: Allow to select default display frequency in
|
||||
@@ -17,7 +17,7 @@ HKCU\Software\Wine\X11 Driver\DefaultDisplayFrequency
|
||||
3 files changed, 44 insertions(+), 15 deletions(-)
|
||||
|
||||
diff --git a/dlls/winex11.drv/settings.c b/dlls/winex11.drv/settings.c
|
||||
index c3f31d0430d..5e01b31106e 100644
|
||||
index bbbb6fdf0a3..82120cdbc2a 100644
|
||||
--- a/dlls/winex11.drv/settings.c
|
||||
+++ b/dlls/winex11.drv/settings.c
|
||||
@@ -378,7 +378,7 @@ LONG CDECL X11DRV_ChangeDisplaySettingsEx( LPCWSTR devname, LPDEVMODEW devmode,
|
||||
@@ -43,7 +43,7 @@ index c3f31d0430d..5e01b31106e 100644
|
||||
}
|
||||
- if ((devmode->dmFields & DM_DISPLAYFREQUENCY) && (dd_modes[i].refresh_rate != 0) &&
|
||||
+ if ((devmode->dmFields & DM_DISPLAYFREQUENCY) &&
|
||||
devmode->dmDisplayFrequency != 0)
|
||||
devmode->dmDisplayFrequency != 0 && devmode->dmDisplayFrequency != 1)
|
||||
{
|
||||
- if (devmode->dmDisplayFrequency != dd_modes[i].refresh_rate)
|
||||
+ if (dd_modes[i].refresh_rate != 0 &&
|
||||
@@ -109,10 +109,10 @@ index c3f31d0430d..5e01b31106e 100644
|
||||
+ return DISP_CHANGE_SUCCESSFUL;
|
||||
}
|
||||
diff --git a/dlls/winex11.drv/x11drv.h b/dlls/winex11.drv/x11drv.h
|
||||
index c2c845503e6..85a1a46788b 100644
|
||||
index a9eaed20cab..76e1344a616 100644
|
||||
--- a/dlls/winex11.drv/x11drv.h
|
||||
+++ b/dlls/winex11.drv/x11drv.h
|
||||
@@ -403,6 +403,7 @@ extern BOOL private_color_map DECLSPEC_HIDDEN;
|
||||
@@ -404,6 +404,7 @@ extern BOOL private_color_map DECLSPEC_HIDDEN;
|
||||
extern int primary_monitor DECLSPEC_HIDDEN;
|
||||
extern int copy_default_colors DECLSPEC_HIDDEN;
|
||||
extern int alloc_system_colors DECLSPEC_HIDDEN;
|
||||
@@ -121,7 +121,7 @@ index c2c845503e6..85a1a46788b 100644
|
||||
extern HMODULE x11drv_module DECLSPEC_HIDDEN;
|
||||
extern char *process_name DECLSPEC_HIDDEN;
|
||||
diff --git a/dlls/winex11.drv/x11drv_main.c b/dlls/winex11.drv/x11drv_main.c
|
||||
index f08ac92e36f..f9fe5234c57 100644
|
||||
index e6e61e801e1..6b82784c5f9 100644
|
||||
--- a/dlls/winex11.drv/x11drv_main.c
|
||||
+++ b/dlls/winex11.drv/x11drv_main.c
|
||||
@@ -85,6 +85,7 @@ BOOL client_side_with_render = TRUE;
|
||||
@@ -132,7 +132,7 @@ index f08ac92e36f..f9fe5234c57 100644
|
||||
DWORD thread_data_tls_index = TLS_OUT_OF_INDEXES;
|
||||
int xrender_error_base = 0;
|
||||
HMODULE x11drv_module = 0;
|
||||
@@ -437,6 +438,9 @@ static void setup_options(void)
|
||||
@@ -435,6 +436,9 @@ static void setup_options(void)
|
||||
if (!get_config_key( hkey, appkey, "AllocSystemColors", buffer, sizeof(buffer) ))
|
||||
alloc_system_colors = atoi(buffer);
|
||||
|
||||
@@ -143,5 +143,5 @@ index f08ac92e36f..f9fe5234c57 100644
|
||||
|
||||
if (appkey) RegCloseKey( appkey );
|
||||
--
|
||||
2.26.2
|
||||
2.27.0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user