diff --git a/src/signs_gui.cpp b/src/signs_gui.cpp --- a/src/signs_gui.cpp +++ b/src/signs_gui.cpp @@ -197,7 +197,7 @@ struct SignListWindow : Window, SignList switch (widget) { case WID_SIL_LIST: { Rect tr = r.Shrink(WidgetDimensions::scaled.framerect); - uint text_offset_y = (this->resize.step_height - FONT_HEIGHT_NORMAL + 1) / 2; + uint text_offset_y = (this->resize.step_height - GetCharacterHeight(FS_NORMAL) + 1) / 2; /* No signs? */ if (this->vscroll->GetCount() == 0) { DrawString(tr.left, tr.right, tr.top + text_offset_y, STR_STATION_LIST_NONE); @@ -269,7 +269,7 @@ struct SignListWindow : Window, SignList case WID_SIL_LIST: { Dimension spr_dim = GetSpriteSize(SPR_COMPANY_ICON); this->text_offset = WidgetDimensions::scaled.frametext.left + spr_dim.width + 2; // 2 pixels space between icon and the sign text. - resize->height = std::max(FONT_HEIGHT_NORMAL, spr_dim.height + 2); + resize->height = std::max(GetCharacterHeight(FS_NORMAL), spr_dim.height + 2); Dimension d = {(uint)(this->text_offset + WidgetDimensions::scaled.frametext.right), padding.height + 5 * resize->height}; *size = maxdim(*size, d); break;