forked from mirror/OpenTTD
(svn r11588) -Codechange: use the new member introduced in r11551
This commit is contained in:
@@ -443,10 +443,10 @@ Point GetTileZoomCenterWindow(bool in, Window * w)
|
||||
void HandleZoomMessage(Window *w, const ViewPort *vp, byte widget_zoom_in, byte widget_zoom_out)
|
||||
{
|
||||
w->SetWidgetDisabledState(widget_zoom_in, vp->zoom == ZOOM_LVL_MIN);
|
||||
InvalidateWidget(w, widget_zoom_in);
|
||||
w->InvalidateWidget(widget_zoom_in);
|
||||
|
||||
w->SetWidgetDisabledState(widget_zoom_out, vp->zoom == ZOOM_LVL_MAX);
|
||||
InvalidateWidget(w, widget_zoom_out);
|
||||
w->InvalidateWidget(widget_zoom_out);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user