diff src/vehicle_gui.cpp @ 9333:5236ba6c7d54 draft

(svn r13225) -Fix (r13041): Missing calls to FindWindowPlacementAndResize() from lots of windows causing 'two stage' opening effect.
author peter1138 <peter1138@openttd.org>
date Fri, 23 May 2008 23:02:13 +0000 (2008-05-23)
parents c399bf075b2f
children feaf9bae7580
line wrap: on
line diff
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -1401,6 +1401,8 @@
 		this->caption_color = v->owner;
 
 		this->tab = 0;
+
+		this->FindWindowPlacementAndResize(desc);
 	}
 
 	/** Checks whether service interval is enabled for the vehicle. */
@@ -1873,6 +1875,8 @@
 
 				default: NOT_REACHED();
 		}
+
+		this->FindWindowPlacementAndResize(desc);
 	}
 
 	~VehicleViewWindow()