summaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-03-08 15:42:39 +0100
committerGitHub <noreply@github.com>2021-03-08 15:42:39 +0100
commitb93d7dd3cbd6dae2011e7863ba8a7aa19614771e (patch)
tree83d4630bfbcafc4875479fe8f796f3a3c8703691 /src/table
parent6e2a96c1333a0d383c7a0191c75dabd837feeeb5 (diff)
downloadopenttd-b93d7dd3cbd6dae2011e7863ba8a7aa19614771e.tar.xz
Add: Option to (dis-)allow accelerated video drivers. (#8819)
The video drivers using the OpenGL backend are currently our only accelerated drivers. The options defaults to off for macOS builds and to on everywhere else. Co-authored-by: Michael Lutz <michi@icosahedron.de>
Diffstat (limited to 'src/table')
-rw-r--r--src/table/misc_settings.ini17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/table/misc_settings.ini b/src/table/misc_settings.ini
index 9d2f76cc0..9286d1c95 100644
--- a/src/table/misc_settings.ini
+++ b/src/table/misc_settings.ini
@@ -12,6 +12,9 @@ static const char *_support8bppmodes = "no|system|hardware";
#ifdef WITH_COCOA
extern bool _allow_hidpi_window;
#endif
+#ifndef WITH_COCOA
+#define WITHOUT_COCOA
+#endif
static const SettingDescGlobVarList _misc_settings[] = {
[post-amble]
@@ -60,6 +63,20 @@ var = _fullscreen
def = false
cat = SC_BASIC
+[SDTG_BOOL]
+ifdef = WITH_COCOA
+name = ""video_hw_accel""
+var = _video_hw_accel
+def = false
+cat = SC_BASIC
+
+[SDTG_BOOL]
+ifdef = WITHOUT_COCOA
+name = ""video_hw_accel""
+var = _video_hw_accel
+def = true
+cat = SC_BASIC
+
[SDTG_OMANY]
name = ""support8bpp""
type = SLE_UINT8