(svn r12553) -Fix (r11547): redraw the signal GUI when the signal drag density changes in the patch settings and vice versa

This commit is contained in:
smatz
2008-04-03 22:31:57 +00:00
parent ff7e8fb2dd
commit b9b99d3150
2 changed files with 20 additions and 3 deletions

View File

@@ -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;