summaryrefslogtreecommitdiff
path: root/src/settings_gui.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2014-10-04 20:34:43 +0000
committerpeter1138 <peter1138@openttd.org>2014-10-04 20:34:43 +0000
commit42c65264f8dd60805b6a42a495ea446332f13b16 (patch)
tree46ea15ed051fba930c575fc4e445c25ce326f72b /src/settings_gui.h
parentd6ac7d6fda940bc2b24290175f1fe3bcbaa16ae1 (diff)
downloadopenttd-42c65264f8dd60805b6a42a495ea446332f13b16.tar.xz
(svn r26959) -Codechange: GUI-scale for settings window.
Diffstat (limited to 'src/settings_gui.h')
-rw-r--r--src/settings_gui.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/settings_gui.h b/src/settings_gui.h
index 2ca418b11..05955aa55 100644
--- a/src/settings_gui.h
+++ b/src/settings_gui.h
@@ -14,8 +14,10 @@
#include "gfx_type.h"
-static const int SETTING_BUTTON_WIDTH = 20; ///< Width of setting buttons
-static const int SETTING_BUTTON_HEIGHT = 10; ///< Height of setting buttons
+/** Width of setting buttons */
+#define SETTING_BUTTON_WIDTH ((int)NWidgetScrollbar::GetHorizontalDimension().width * 2)
+/** Height of setting buttons */
+#define SETTING_BUTTON_HEIGHT ((int)NWidgetScrollbar::GetHorizontalDimension().height)
void DrawArrowButtons(int x, int y, Colours button_colour, byte state, bool clickable_left, bool clickable_right);
void DrawDropDownButton(int x, int y, Colours button_colour, bool state, bool clickable);