2021-11-18 16:07:35 -08:00
|
|
|
From 9a550439fe370711ce1a2146753aa41026d5fb2a 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
|
2021-11-18 16:07:35 -08:00
|
|
|
index d73a52fa35f..f85973de13d 100644
|
2021-07-01 20:11:39 -07:00
|
|
|
--- a/dlls/winemac.drv/macdrv.h
|
|
|
|
+++ b/dlls/winemac.drv/macdrv.h
|
|
|
|
@@ -41,6 +41,7 @@
|
|
|
|
extern BOOL allow_software_rendering DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL disable_window_decorations DECLSPEC_HIDDEN;
|
|
|
|
extern HMODULE macdrv_module DECLSPEC_HIDDEN;
|
|
|
|
+extern BOOL force_backing_store DECLSPEC_HIDDEN;
|
|
|
|
|
|
|
|
|
|
|
|
extern const char* debugstr_cf(CFTypeRef t) DECLSPEC_HIDDEN;
|
|
|
|
diff --git a/dlls/winemac.drv/macdrv_main.c b/dlls/winemac.drv/macdrv_main.c
|
2021-11-18 16:07:35 -08:00
|
|
|
index d8d16b1f4df..09fee166a05 100644
|
2021-07-01 20:11:39 -07:00
|
|
|
--- a/dlls/winemac.drv/macdrv_main.c
|
|
|
|
+++ b/dlls/winemac.drv/macdrv_main.c
|
|
|
|
@@ -63,6 +63,7 @@ int gl_surface_mode = GL_SURFACE_IN_FRONT_OPAQUE;
|
|
|
|
int retina_enabled = FALSE;
|
|
|
|
HMODULE macdrv_module = 0;
|
|
|
|
int enable_app_nap = FALSE;
|
|
|
|
+BOOL force_backing_store = FALSE;
|
|
|
|
|
|
|
|
CFDictionaryRef localized_strings;
|
|
|
|
|
|
|
|
@@ -213,6 +214,9 @@ static void setup_options(void)
|
|
|
|
if (!get_config_key(hkey, appkey, "EnableAppNap", buffer, sizeof(buffer)))
|
|
|
|
enable_app_nap = IS_OPTION_TRUE(buffer[0]);
|
|
|
|
|
|
|
|
+ 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
|
2021-11-18 16:07:35 -08:00
|
|
|
index 33132de7415..b2c66296d9c 100644
|
2021-07-01 20:11:39 -07:00
|
|
|
--- a/dlls/winemac.drv/opengl.c
|
|
|
|
+++ b/dlls/winemac.drv/opengl.c
|
2021-11-18 16:07:35 -08:00
|
|
|
@@ -1465,7 +1465,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
|
|
|
--
|
2021-11-18 16:07:35 -08:00
|
|
|
2.33.0
|
2021-07-01 20:11:39 -07:00
|
|
|
|