summaryrefslogtreecommitdiff
path: root/src/settings_gui.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-06-01 14:41:09 +0000
committerfrosch <frosch@openttd.org>2012-06-01 14:41:09 +0000
commit056f779334baf1857686453a8b382daf079311de (patch)
treeb1aee9f3e86b072ac264e88e7be885a4b9fc64b7 /src/settings_gui.h
parent198de5397ed4a217273bda29dae8ddf60ba48f1d (diff)
downloadopenttd-056f779334baf1857686453a8b382daf079311de.tar.xz
(svn r24310) -Codechange: Add named constants for the dimensions of settings buttons, and generally make their usage more consistent.
Diffstat (limited to 'src/settings_gui.h')
-rw-r--r--src/settings_gui.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/settings_gui.h b/src/settings_gui.h
index 18af89f6a..5d6cfe8a9 100644
--- a/src/settings_gui.h
+++ b/src/settings_gui.h
@@ -14,6 +14,9 @@
#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
+
void DrawArrowButtons(int x, int y, Colours button_colour, byte state, bool clickable_left, bool clickable_right);
void DrawBoolButton(int x, int y, bool state, bool clickable);