diff options
author | frosch <frosch@openttd.org> | 2012-01-05 19:32:51 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-01-05 19:32:51 +0000 |
commit | 69e197c87fc23e5492f4b59f8e1ba8757d65c41e (patch) | |
tree | 667e2d8a3efff34d87d9fcea1fb946279fb38afd /src/cheat_gui.cpp | |
parent | 2fb393fcd0a45c9c34e080714f4bdf7d77ca4fbd (diff) | |
download | openttd-69e197c87fc23e5492f4b59f8e1ba8757d65c41e.tar.xz |
(svn r23757) -Codechange: Unify the drawing of toggle buttons for boolean settings.
Diffstat (limited to 'src/cheat_gui.cpp')
-rw-r--r-- | src/cheat_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cheat_gui.cpp b/src/cheat_gui.cpp index aad1d8fe5..be4f57399 100644 --- a/src/cheat_gui.cpp +++ b/src/cheat_gui.cpp @@ -197,7 +197,7 @@ struct CheatWindow : Window { case SLE_BOOL: { bool on = (*(bool*)ce->variable); - DrawFrameRect(button_left, y + 1, button_left + 20 - 1, y + FONT_HEIGHT_NORMAL - 1, on ? COLOUR_GREEN : COLOUR_RED, on ? FR_LOWERED : FR_NONE); + DrawBoolButton(button_left, y, on, true); SetDParam(0, on ? STR_CONFIG_SETTING_ON : STR_CONFIG_SETTING_OFF); break; } |