2024-04-18 14:51:57 -07:00
|
|
|
From 19d54067c5e9a44b4f4f319cd61232665f7fb01a Mon Sep 17 00:00:00 2001
|
2021-07-01 20:11:39 -07:00
|
|
|
From: Ken Thomases <ken@codeweavers.com>
|
|
|
|
Date: Tue, 22 Jun 2021 07:56:43 +1000
|
|
|
|
Subject: [PATCH] winemac.drv: No Flicker patch
|
|
|
|
|
|
|
|
---
|
|
|
|
dlls/winemac.drv/macdrv.h | 1 +
|
|
|
|
dlls/winemac.drv/macdrv_main.c | 4 ++++
|
|
|
|
dlls/winemac.drv/opengl.c | 2 +-
|
|
|
|
3 files changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/dlls/winemac.drv/macdrv.h b/dlls/winemac.drv/macdrv.h
|
2024-04-18 14:51:57 -07:00
|
|
|
index f5793006c35..0aa4d651d70 100644
|
2021-07-01 20:11:39 -07:00
|
|
|
--- a/dlls/winemac.drv/macdrv.h
|
|
|
|
+++ b/dlls/winemac.drv/macdrv.h
|
2023-11-29 16:35:48 -08:00
|
|
|
@@ -44,6 +44,7 @@
|
|
|
|
extern BOOL allow_set_gamma;
|
|
|
|
extern BOOL allow_software_rendering;
|
|
|
|
extern BOOL disable_window_decorations;
|
|
|
|
+extern BOOL force_backing_store;
|
2021-07-01 20:11:39 -07:00
|
|
|
|
2023-11-29 16:35:48 -08:00
|
|
|
extern const char* debugstr_cf(CFTypeRef t);
|
2022-07-21 16:22:53 -07:00
|
|
|
|
2021-07-01 20:11:39 -07:00
|
|
|
diff --git a/dlls/winemac.drv/macdrv_main.c b/dlls/winemac.drv/macdrv_main.c
|
2024-04-18 14:51:57 -07:00
|
|
|
index acfad65ea81..aff0181e253 100644
|
2021-07-01 20:11:39 -07:00
|
|
|
--- a/dlls/winemac.drv/macdrv_main.c
|
|
|
|
+++ b/dlls/winemac.drv/macdrv_main.c
|
2024-04-18 14:51:57 -07:00
|
|
|
@@ -61,6 +61,7 @@ int gl_surface_mode = GL_SURFACE_IN_FRONT_OPAQUE;
|
2021-07-01 20:11:39 -07:00
|
|
|
int retina_enabled = FALSE;
|
|
|
|
int enable_app_nap = FALSE;
|
2024-04-18 14:51:57 -07:00
|
|
|
int eager_dock_icon_hiding = TRUE;
|
2021-07-01 20:11:39 -07:00
|
|
|
+BOOL force_backing_store = FALSE;
|
|
|
|
|
|
|
|
CFDictionaryRef localized_strings;
|
|
|
|
|
2024-04-18 14:51:57 -07:00
|
|
|
@@ -382,6 +383,9 @@ static void setup_options(void)
|
|
|
|
if (!get_config_key(hkey, appkey, "EagerDockIconHiding", buffer, sizeof(buffer)))
|
|
|
|
eager_dock_icon_hiding = IS_OPTION_TRUE(buffer[0]);
|
2021-07-01 20:11:39 -07:00
|
|
|
|
|
|
|
+ if (!get_config_key(hkey, appkey, "ForceOpenGLBackingStore", buffer, sizeof(buffer)))
|
|
|
|
+ force_backing_store = IS_OPTION_TRUE(buffer[0]);
|
|
|
|
+
|
|
|
|
/* Don't use appkey. The DPI and monitor sizes should be consistent for all
|
|
|
|
processes in the prefix. */
|
|
|
|
if (!get_config_key(hkey, NULL, "RetinaMode", buffer, sizeof(buffer)))
|
|
|
|
diff --git a/dlls/winemac.drv/opengl.c b/dlls/winemac.drv/opengl.c
|
2023-11-29 16:35:48 -08:00
|
|
|
index f78454ed149..205c0816d44 100644
|
2021-07-01 20:11:39 -07:00
|
|
|
--- a/dlls/winemac.drv/opengl.c
|
|
|
|
+++ b/dlls/winemac.drv/opengl.c
|
2023-11-29 16:35:48 -08:00
|
|
|
@@ -1451,7 +1451,7 @@ static BOOL create_context(struct wgl_context *context, CGLContextObj share, uns
|
2021-07-01 20:11:39 -07:00
|
|
|
attribs[n++] = pf->samples;
|
|
|
|
}
|
|
|
|
|
|
|
|
- if (pf->backing_store)
|
|
|
|
+ if (force_backing_store || pf->backing_store)
|
|
|
|
attribs[n++] = kCGLPFABackingStore;
|
|
|
|
|
2021-11-18 16:07:35 -08:00
|
|
|
if (core)
|
2021-07-01 20:11:39 -07:00
|
|
|
--
|
2024-04-18 14:51:57 -07:00
|
|
|
2.43.0
|
2021-07-01 20:11:39 -07:00
|
|
|
|