summaryrefslogtreecommitdiff
path: root/src/newgrf_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-01-05 19:32:51 +0000
committerfrosch <frosch@openttd.org>2012-01-05 19:32:51 +0000
commit69e197c87fc23e5492f4b59f8e1ba8757d65c41e (patch)
tree667e2d8a3efff34d87d9fcea1fb946279fb38afd /src/newgrf_gui.cpp
parent2fb393fcd0a45c9c34e080714f4bdf7d77ca4fbd (diff)
downloadopenttd-69e197c87fc23e5492f4b59f8e1ba8757d65c41e.tar.xz
(svn r23757) -Codechange: Unify the drawing of toggle buttons for boolean settings.
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r--src/newgrf_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index f53f49db6..f404737ad 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -247,7 +247,7 @@ struct NewGRFParametersWindow : public Window {
bool selected = (i == this->clicked_row);
if (par_info->type == PTYPE_BOOL) {
- DrawFrameRect(buttons_left, y + 2, buttons_left + 19, y + 10, (current_value != 0) ? COLOUR_GREEN : COLOUR_RED, (current_value != 0) ? FR_LOWERED : FR_NONE);
+ DrawBoolButton(buttons_left, y + 2, current_value != 0, true);
SetDParam(2, par_info->GetValue(this->grf_config) == 0 ? STR_CONFIG_SETTING_OFF : STR_CONFIG_SETTING_ON);
} else if (par_info->type == PTYPE_UINT_ENUM) {
DrawArrowButtons(buttons_left, y + 2, COLOUR_YELLOW, (this->clicked_button == i) ? 1 + (this->clicked_increase != rtl) : 0, current_value > par_info->min_value, current_value < par_info->max_value);