Mercurial > hg > openttd
diff src/waypoint_gui.cpp @ 16313:a09e9e494674 draft
(svn r21021) -Add [FS#4171]: Center industry gui and waypoint gui after resize (partly by Krille).
author | alberth <alberth@openttd.org> |
---|---|
date | Sat, 23 Oct 2010 20:51:48 +0000 (2010-10-23) |
parents | e19d6bb9ff88 |
children | 3835bbe059fe |
line wrap: on
line diff
--- a/src/waypoint_gui.cpp +++ b/src/waypoint_gui.cpp @@ -127,6 +127,8 @@ NWidgetViewport *nvp = this->GetWidget<NWidgetViewport>(WAYPVW_VIEWPORT); nvp->UpdateViewportCoordinates(this); this->wp->UpdateVirtCoord(); + + ScrollWindowToTile(this->GetCenterTile(), this, true); // Re-center viewport. } }