Merge remote-tracking branch 'upstream/master'

This commit is contained in:
dP
2024-04-11 13:24:33 +07:00
43 changed files with 805 additions and 625 deletions

View File

@@ -100,7 +100,7 @@ struct EnginePreviewWindow : Window {
}
this->vehicle_space = std::max<int>(ScaleSpriteTrad(40), y - y_offs);
size->width = std::max(size->width, x - x_offs);
size->width = std::max(size->width, x + std::abs(x_offs));
SetDParam(0, GetEngineCategoryName(engine));
size->height = GetStringHeight(STR_ENGINE_PREVIEW_MESSAGE, size->width) + WidgetDimensions::scaled.vsep_wide + GetCharacterHeight(FS_NORMAL) + this->vehicle_space;
SetDParam(0, engine);