Changeset - r18467:be6d7226508e
[Not reviewed]
master
0 2 0
peter1138 - 13 years ago 2011-11-24 18:55:56
peter1138@openttd.org
(svn r23321) -Fix (r23316): Extra viewports and waypoint detail opened up at wrong zoom level.
2 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/viewport_gui.cpp
Show inline comments
 
@@ -64,8 +64,8 @@ public:
 
		this->InitNested(desc, window_number);
 

	
 
		NWidgetViewport *nvp = this->GetWidget<NWidgetViewport>(EVW_VIEWPORT);
 
		nvp->InitializeViewport(this, 0, ZOOM_LVL_NORMAL);
 
		this->DisableWidget(EVW_ZOOMIN);
 
		nvp->InitializeViewport(this, 0, ZOOM_LVL_VIEWPORT);
 
		if (_settings_client.gui.zoom_min == ZOOM_LVL_VIEWPORT) this->DisableWidget(EVW_ZOOMIN);
 

	
 
		Point pt;
 
		if (tile == INVALID_TILE) {
src/waypoint_gui.cpp
Show inline comments
 
@@ -76,7 +76,7 @@ public:
 
		this->flags4 |= WF_DISABLE_VP_SCROLL;
 

	
 
		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);
 
	}
0 comments (0 inline, 0 general)