diff --git a/src/main_gui.cpp b/src/main_gui.cpp --- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -166,9 +166,8 @@ bool DoZoomInOutWindow(int how, Window * vp->virtual_left = w->viewport->scrollpos_x; vp->virtual_top = w->viewport->scrollpos_y; } - w->SetDirty(); /* Update the windows that have zoom-buttons to perhaps disable their buttons */ - InvalidateThisWindowData(w); + w->InvalidateData(); return true; }