Window: Add accessors for cached NWidgetLeaf dimensions

This commit is contained in:
Jonathan G Rennison
2023-08-26 22:15:05 +01:00
parent 81a0ed0763
commit 668a0f774a
5 changed files with 62 additions and 30 deletions

View File

@@ -3019,7 +3019,7 @@ struct BuildVehicleWindowTrainAdvanced final : BuildVehicleWindowBase {
}
case WID_BV_RENAME_LOCO: {
*size = maxdim(*size, NWidgetLeaf::resizebox_dimension);
*size = maxdim(*size, NWidgetLeaf::GetResizeBoxDimension());
break;
}
}