summaryrefslogtreecommitdiff
path: root/src/rail_gui.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-04-03 22:31:57 +0000
committersmatz <smatz@openttd.org>2008-04-03 22:31:57 +0000
commitcc775d809c8e292fb44970d549cf22a36df11ab2 (patch)
tree6fcf7de7248b151c960642e109d0d50acc73e62c /src/rail_gui.cpp
parent8ed3f5fd5e07dc95ee4a82f1d2fbe255a509203a (diff)
downloadopenttd-cc775d809c8e292fb44970d549cf22a36df11ab2.tar.xz
(svn r12553) -Fix (r11547): redraw the signal GUI when the signal drag density changes in the patch settings and vice versa
Diffstat (limited to 'src/rail_gui.cpp')
-rw-r--r--src/rail_gui.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp
index 861a41f3c..bbab6bfda 100644
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -1328,11 +1328,19 @@ static void SignalBuildWndProc(Window *w, WindowEvent *e)
break;
case BSW_DRAG_SIGNALS_DENSITY_DECREASE:
- if (_patches.drag_signals_density > 1) _patches.drag_signals_density--;
+ if (_patches.drag_signals_density > 1) {
+ _patches.drag_signals_density--;
+ const Window *w = FindWindowById(WC_GAME_OPTIONS, 0);
+ if (w != NULL) SetWindowDirty(w);
+ }
break;
case BSW_DRAG_SIGNALS_DENSITY_INCREASE:
- if (_patches.drag_signals_density < 20) _patches.drag_signals_density++;
+ if (_patches.drag_signals_density < 20) {
+ _patches.drag_signals_density++;
+ const Window *w = FindWindowById(WC_GAME_OPTIONS, 0);
+ if (w != NULL) SetWindowDirty(w);
+ }
break;
default: break;