1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-28 00:49:11 +00:00

(svn r17969) -Codechange: use the toolbar switch button lowered state as a way to tell which of the configurations it's showing

This commit is contained in:
rubidium
2009-11-04 15:49:27 +00:00
parent e6a164de09
commit fd29b7b526

View File

@@ -779,7 +779,7 @@ static void ToolbarSwitchClick(Window *w)
}
SplitToolbar(w);
w->HandleButtonClick(TBN_SWITCHBAR);
w->SetWidgetLoweredState(TBN_SWITCHBAR, _toolbar_mode == TB_LOWER);
w->SetDirty();
SndPlayFx(SND_15_BEEP);
}