Mercurial > hg > openttd
comparison 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 |
parents | c399bf075b2f |
children | feaf9bae7580 |
comparison
equal
deleted
inserted
replaced
9332:b7a838601598 | 9333:5236ba6c7d54 |
---|---|
1399 | 1399 |
1400 this->widget[VLD_WIDGET_MIDDLE_DETAILS].data = (this->vscroll.cap << 8) + 1; | 1400 this->widget[VLD_WIDGET_MIDDLE_DETAILS].data = (this->vscroll.cap << 8) + 1; |
1401 this->caption_color = v->owner; | 1401 this->caption_color = v->owner; |
1402 | 1402 |
1403 this->tab = 0; | 1403 this->tab = 0; |
1404 | |
1405 this->FindWindowPlacementAndResize(desc); | |
1404 } | 1406 } |
1405 | 1407 |
1406 /** Checks whether service interval is enabled for the vehicle. */ | 1408 /** Checks whether service interval is enabled for the vehicle. */ |
1407 static bool IsVehicleServiceIntervalEnabled(const VehicleType vehicle_type) | 1409 static bool IsVehicleServiceIntervalEnabled(const VehicleType vehicle_type) |
1408 { | 1410 { |
1871 WIDGET_LIST_END); | 1873 WIDGET_LIST_END); |
1872 break; | 1874 break; |
1873 | 1875 |
1874 default: NOT_REACHED(); | 1876 default: NOT_REACHED(); |
1875 } | 1877 } |
1878 | |
1879 this->FindWindowPlacementAndResize(desc); | |
1876 } | 1880 } |
1877 | 1881 |
1878 ~VehicleViewWindow() | 1882 ~VehicleViewWindow() |
1879 { | 1883 { |
1880 DeleteWindowById(WC_VEHICLE_ORDERS, this->window_number); | 1884 DeleteWindowById(WC_VEHICLE_ORDERS, this->window_number); |