diff options
author | frosch <frosch@openttd.org> | 2010-09-02 19:34:44 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-09-02 19:34:44 +0000 |
commit | 48d8f16653a7ba67815010e5de4e79f97e2f4c4b (patch) | |
tree | f98087af69e07e93cb5c8c951c37094797287863 /src/vehicle_gui.cpp | |
parent | 5e258efe6becf3e106fcea46b1f454cbc52820aa (diff) | |
download | openttd-48d8f16653a7ba67815010e5de4e79f97e2f4c4b.tar.xz |
(svn r20719) -Codechange: Remove some hardcoded iconsizes.
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 5c922c0f1..223100d49 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -1023,7 +1023,7 @@ void BaseVehicleListWindow::DrawVehicleListItems(VehicleID selected_vehicle, int int image_left = (rtl && show_orderlist) ? orderlist_right : text_left; int image_right = (!rtl && show_orderlist) ? orderlist_left : text_right; - int vehicle_button_x = rtl ? right - 8 : left; + int vehicle_button_x = rtl ? right - GetSpriteSize(SPR_BLOT).width : left; int y = r.top; uint max = min(this->vscroll->GetPosition() + this->vscroll->GetCapacity(), this->vehicles.Length()); |