Fix d85f4b3ebf: Incorrect row height in network server list. (#14653)

This commit is contained in:
Peter Nelson
2025-09-23 23:15:21 +01:00
committed by dP
parent f5ec253a8e
commit cd639a774d

View File

@@ -489,12 +489,12 @@ public:
{
switch (widget) {
case WID_NG_MATRIX:
fill.height = resize.height = std::max(GetSpriteSize(SPR_BLOT).height, (uint)GetCharacterHeight(FS_NORMAL)) + padding.height;
fill.height = resize.height = std::max<uint>(this->blot.height, GetCharacterHeight(FS_NORMAL)) + padding.height;
size.height = 12 * resize.height;
break;
case WID_NG_LASTJOINED:
size.height = std::max(GetSpriteSize(SPR_BLOT).height, (uint)GetCharacterHeight(FS_NORMAL)) + WidgetDimensions::scaled.matrix.Vertical();
size.height = std::max<uint>(this->blot.height, GetCharacterHeight(FS_NORMAL)) + WidgetDimensions::scaled.matrix.Vertical();
break;
case WID_NG_LASTJOINED_SPACER: