mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
62 lines
2.1 KiB
Diff
62 lines
2.1 KiB
Diff
From ad91a015d40c8bea7dcb603ead7897e593ea173a Mon Sep 17 00:00:00 2001
|
|
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
|
|
index 19efc4dc7d4..2468d4219f6 100644
|
|
--- a/dlls/winemac.drv/macdrv.h
|
|
+++ b/dlls/winemac.drv/macdrv.h
|
|
@@ -44,6 +44,7 @@
|
|
extern BOOL allow_set_gamma;
|
|
extern BOOL allow_software_rendering;
|
|
extern BOOL disable_window_decorations;
|
|
+extern BOOL force_backing_store;
|
|
|
|
extern const char* debugstr_cf(CFTypeRef t);
|
|
|
|
diff --git a/dlls/winemac.drv/macdrv_main.c b/dlls/winemac.drv/macdrv_main.c
|
|
index 21b148ff558..3034fe2f780 100644
|
|
--- a/dlls/winemac.drv/macdrv_main.c
|
|
+++ b/dlls/winemac.drv/macdrv_main.c
|
|
@@ -60,6 +60,7 @@ int use_precise_scrolling = TRUE;
|
|
int gl_surface_mode = GL_SURFACE_IN_FRONT_OPAQUE;
|
|
int retina_enabled = FALSE;
|
|
int enable_app_nap = FALSE;
|
|
+BOOL force_backing_store = FALSE;
|
|
|
|
CFDictionaryRef localized_strings;
|
|
|
|
@@ -378,6 +379,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
|
|
index 1c0b87d694a..b0a3e25fd73 100644
|
|
--- a/dlls/winemac.drv/opengl.c
|
|
+++ b/dlls/winemac.drv/opengl.c
|
|
@@ -1451,7 +1451,7 @@ static BOOL create_context(struct wgl_context *context, CGLContextObj share, uns
|
|
attribs[n++] = pf->samples;
|
|
}
|
|
|
|
- if (pf->backing_store)
|
|
+ if (force_backing_store || pf->backing_store)
|
|
attribs[n++] = kCGLPFABackingStore;
|
|
|
|
if (core)
|
|
--
|
|
2.43.0
|
|
|