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
commitb9b99d31506a36665cad684023bd5efe09cf49e1 (patch)
tree6fcf7de7248b151c960642e109d0d50acc73e62c /src/rail_gui.cpp
parentff7e8fb2dde6c537da364b3602f4a2e56990c582 (diff)
downloadopenttd-b9b99d31506a36665cad684023bd5efe09cf49e1.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;