mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-20 19:02:41 +01:00
Fix: EngineImageType mismatch between sizing and drawing in preview window (#14455)
This commit is contained in:
committed by
GitHub
parent
1b01a0636c
commit
03672ed8eb
@@ -84,7 +84,7 @@ struct EnginePreviewWindow : Window {
|
||||
|
||||
/* Get size of engine sprite, on loan from depot_gui.cpp */
|
||||
EngineID engine = static_cast<EngineID>(this->window_number);
|
||||
EngineImageType image_type = EIT_PURCHASE;
|
||||
EngineImageType image_type = EIT_PREVIEW;
|
||||
uint x, y;
|
||||
int x_offs, y_offs;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user