Fix #10114: Wonky depot layout. (#10191)
commit53682b4b6b1c8695b1d2cf24df85acef662cc44f
authorPeterN <peter1138@openttd.org>
Wed, 23 Nov 2022 21:01:09 +0000 (23 21:01 +0000)
committerGitHub <noreply@github.com>
Wed, 23 Nov 2022 21:01:09 +0000 (23 21:01 +0000)
tree4868b3cb05d66595ada8f4b6ff19c3a6fae913e0
parente85d2603d9960f4fc2378945ca46b718f064c3cc
Fix #10114: Wonky depot layout. (#10191)

Depot lists internal layout was not handled well. This is improved by
throwing more Rects at it:
- Vehicle images are now be vertically centred in the rect.
- Image clipping is relaxed to cover the rect, improving larger sprites.
- Outline highlight is now aware of bevel thickness.
src/aircraft_gui.cpp
src/depot_gui.cpp
src/newgrf_debug_gui.cpp
src/roadveh_gui.cpp
src/ship_gui.cpp
src/train_gui.cpp
src/vehicle_gui.cpp
src/vehicle_gui.h