(svn r14143) -Codechange: Recenter viewport of waypoint window when relocating the waypoint.

This commit is contained in:
frosch
2008-08-23 16:34:05 +00:00
parent 857df41a6d
commit a813b6a854
2 changed files with 8 additions and 0 deletions

View File

@@ -77,6 +77,13 @@ public:
}
}
virtual void OnInvalidateData(int data)
{
int x = TileX(this->wp->xy) * TILE_SIZE;
int y = TileY(this->wp->xy) * TILE_SIZE;
ScrollWindowTo(x,y, this);
}
virtual void OnQueryTextFinished(char *str)
{
if (!StrEmpty(str)) {