(svn r20813) -Fix: make the waypoint viewport keep centered around the waypoint when resizing the window (Krille)

pull/155/head
rubidium 14 years ago
parent 7e683e1da6
commit 4dc1647d12

@ -110,7 +110,7 @@ public:
int x = TileX(this->wp->xy) * TILE_SIZE;
int y = TileY(this->wp->xy) * TILE_SIZE;
ScrollWindowTo(x, y, -1, this);
ScrollWindowTo(x, y, -1, this, true);
}
virtual void OnResize()
@ -118,6 +118,7 @@ public:
if (this->viewport != NULL) {
NWidgetViewport *nvp = this->GetWidget<NWidgetViewport>(WAYPVW_VIEWPORT);
nvp->UpdateViewportCoordinates(this);
this->wp->UpdateVirtCoord();
}
}

Loading…
Cancel
Save