summaryrefslogtreecommitdiff
path: root/src/zoom_type.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-01-08 22:15:06 +0100
committerMichael Lutz <michi@icosahedron.de>2021-02-14 14:16:40 +0100
commit22f5aeab07cb1c67561b9e348e2c944740233607 (patch)
tree0dbb0edbf02962e297e7d99e6d96b14ee570333b /src/zoom_type.h
parenta2c3197f424daa6e02201d8304015b0eb67d0b04 (diff)
downloadopenttd-22f5aeab07cb1c67561b9e348e2c944740233607.tar.xz
Feature: Automatic UI and font zoom levels when supported by the OS.
Diffstat (limited to 'src/zoom_type.h')
-rw-r--r--src/zoom_type.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/zoom_type.h b/src/zoom_type.h
index 2606e0767..0945e1cc0 100644
--- a/src/zoom_type.h
+++ b/src/zoom_type.h
@@ -15,6 +15,8 @@
static uint const ZOOM_LVL_SHIFT = 2;
static uint const ZOOM_LVL_BASE = 1 << ZOOM_LVL_SHIFT;
+static const int8 ZOOM_LVL_CFG_AUTO = -1;
+
/** All zoom levels we know. */
enum ZoomLevel : byte {
/* Our possible zoom-levels */
@@ -48,6 +50,9 @@ enum ZoomLevel : byte {
};
DECLARE_POSTFIX_INCREMENT(ZoomLevel)
+extern int8 _gui_zoom_cfg;
+extern int8 _font_zoom_cfg;
+
extern ZoomLevel _gui_zoom;
extern ZoomLevel _font_zoom;
#define ZOOM_LVL_GUI (_gui_zoom)