summaryrefslogtreecommitdiff
path: root/src/viewport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r--src/viewport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp
index 806f7e2c9..96dbe753c 100644
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -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);
}
/**