diff options
author | peter1138 <peter1138@openttd.org> | 2014-10-04 16:40:23 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2014-10-04 16:40:23 +0000 |
commit | ce9fab58bc02cda3fde8d3cb42fd88f25889b340 (patch) | |
tree | 7b92188f2ac8622c17ee45cd6c54bd16196c064c /src/ship_gui.cpp | |
parent | 587ad940cc46ffb573e080320bac51085994b7f7 (diff) | |
download | openttd-ce9fab58bc02cda3fde8d3cb42fd88f25889b340.tar.xz |
(svn r26951) -Codechange: Do the GUI-scale dance for vehicle, depot, and purchase lists.
Diffstat (limited to 'src/ship_gui.cpp')
-rw-r--r-- | src/ship_gui.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ship_gui.cpp b/src/ship_gui.cpp index cd04efbef..4db55215c 100644 --- a/src/ship_gui.cpp +++ b/src/ship_gui.cpp @@ -42,11 +42,12 @@ void DrawShipImage(const Vehicle *v, int left, int right, int y, VehicleID selec int x_offs = UnScaleByZoom(real_sprite->x_offs, ZOOM_LVL_GUI); int x = rtl ? right - width - x_offs : left - x_offs; - DrawSprite(sprite, GetVehiclePalette(v), x, y + 10); + y += UnScaleByZoom(4 * 10, ZOOM_LVL_GUI); + DrawSprite(sprite, GetVehiclePalette(v), x, y); if (v->index == selection) { x += x_offs; - y += UnScaleByZoom(real_sprite->y_offs, ZOOM_LVL_GUI) + 10; + y += UnScaleByZoom(real_sprite->y_offs, ZOOM_LVL_GUI); DrawFrameRect(x - 1, y - 1, x + width + 1, y + UnScaleByZoom(real_sprite->height, ZOOM_LVL_GUI) + 1, COLOUR_WHITE, FR_BORDERONLY); } } |