diff options
author | frosch <frosch@openttd.org> | 2012-06-01 14:41:09 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-06-01 14:41:09 +0000 |
commit | 056f779334baf1857686453a8b382daf079311de (patch) | |
tree | b1aee9f3e86b072ac264e88e7be885a4b9fc64b7 /src/settings_gui.h | |
parent | 198de5397ed4a217273bda29dae8ddf60ba48f1d (diff) | |
download | openttd-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.h | 3 |
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); |