mirror of https://github.com/OpenTTD/OpenTTD
(svn r23321) -Fix (r23316): Extra viewports and waypoint detail opened up at wrong zoom level.
parent
25a5257718
commit
3e1aaa1235
|
@ -64,8 +64,8 @@ public:
|
||||||
this->InitNested(desc, window_number);
|
this->InitNested(desc, window_number);
|
||||||
|
|
||||||
NWidgetViewport *nvp = this->GetWidget<NWidgetViewport>(EVW_VIEWPORT);
|
NWidgetViewport *nvp = this->GetWidget<NWidgetViewport>(EVW_VIEWPORT);
|
||||||
nvp->InitializeViewport(this, 0, ZOOM_LVL_NORMAL);
|
nvp->InitializeViewport(this, 0, ZOOM_LVL_VIEWPORT);
|
||||||
this->DisableWidget(EVW_ZOOMIN);
|
if (_settings_client.gui.zoom_min == ZOOM_LVL_VIEWPORT) this->DisableWidget(EVW_ZOOMIN);
|
||||||
|
|
||||||
Point pt;
|
Point pt;
|
||||||
if (tile == INVALID_TILE) {
|
if (tile == INVALID_TILE) {
|
||||||
|
|
|
@ -76,7 +76,7 @@ public:
|
||||||
this->flags4 |= WF_DISABLE_VP_SCROLL;
|
this->flags4 |= WF_DISABLE_VP_SCROLL;
|
||||||
|
|
||||||
NWidgetViewport *nvp = this->GetWidget<NWidgetViewport>(WAYPVW_VIEWPORT);
|
NWidgetViewport *nvp = this->GetWidget<NWidgetViewport>(WAYPVW_VIEWPORT);
|
||||||
nvp->InitializeViewport(this, this->GetCenterTile(), ZOOM_LVL_MIN);
|
nvp->InitializeViewport(this, this->GetCenterTile(), ZOOM_LVL_VIEWPORT);
|
||||||
|
|
||||||
this->OnInvalidateData(0);
|
this->OnInvalidateData(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue