File diff r24596:eddf98238034 → r24597:afde5721a3b6
src/engine_gui.cpp
Show inline comments
 
@@ -93,9 +93,9 @@ struct EnginePreviewWindow : Window {
 
			case VEH_SHIP:     GetShipSpriteSize(    engine, x, y, x_offs, y_offs, image_type); break;
 
			case VEH_AIRCRAFT: GetAircraftSpriteSize(engine, x, y, x_offs, y_offs, image_type); break;
 
		}
 
		this->vehicle_space = max<int>(40, y - y_offs);
 
		this->vehicle_space = std::max<int>(40, y - y_offs);
 

	
 
		size->width = max(size->width, x - x_offs);
 
		size->width = std::max(size->width, x - x_offs);
 
		SetDParam(0, GetEngineCategoryName(engine));
 
		size->height = GetStringHeight(STR_ENGINE_PREVIEW_MESSAGE, size->width) + WD_PAR_VSEP_WIDE + FONT_HEIGHT_NORMAL + this->vehicle_space;
 
		SetDParam(0, engine);