* Toggles state of the Remove button of Build road toolbar * @param w window the button belongs to */
| 314 | * @param w window the button belongs to |
| 315 | */ |
| 316 | static void ToggleRoadButton_Remove(Window *w) |
| 317 | { |
| 318 | w->ToggleWidgetLoweredState(WID_ROT_REMOVE); |
| 319 | w->SetWidgetDirty(WID_ROT_REMOVE); |
| 320 | _remove_button_clicked = w->IsWidgetLowered(WID_ROT_REMOVE); |
| 321 | SetSelectionRed(_remove_button_clicked); |
| 322 | } |
| 323 | |
| 324 | /** |
| 325 | * Updates the Remove button because of Ctrl state change |
no test coverage detected