(svn r21022) -Add (r21021): Missed recentering of a town gui viewport after a resize.

This commit is contained in:
alberth 2010-10-23 21:14:35 +00:00
parent df7a32d364
commit c4687de4e2
1 changed files with 2 additions and 0 deletions

View File

@ -526,6 +526,8 @@ public:
if (this->viewport != NULL) {
NWidgetViewport *nvp = this->GetWidget<NWidgetViewport>(TVW_VIEWPORT);
nvp->UpdateViewportCoordinates(this);
ScrollWindowToTile(this->town->xy, this, true); // Re-center viewport.
}
}