From fb9f4a68b9f04ad567dae497335139b420202ef4 Mon Sep 17 00:00:00 2001 From: James R Date: Mon, 29 Jan 2024 22:22:51 -0800 Subject: [PATCH] Server splash: display server name in medium font --- src/st_stuff.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/st_stuff.c b/src/st_stuff.c index 00c8773bd..d65d19ea1 100644 --- a/src/st_stuff.c +++ b/src/st_stuff.c @@ -1459,10 +1459,19 @@ void ST_DrawServerSplash(boolean timelimited) fixed_t textX = (BASEVIDWIDTH - 16 - 36) * FRACUNIT; fixed_t textY = (24 - 8) * FRACUNIT; - - V_DrawRightAlignedStringAtFixed( - textX, textY, + fixed_t textW = V_StringScaledWidth( + FRACUNIT, FRACUNIT, FRACUNIT, (V_SNAPTORIGHT|V_SNAPTOTOP) | opacityFlag, + MED_FONT, + connectedservername + ); + + V_DrawStringScaled( + textX - textW, textY, + FRACUNIT, FRACUNIT, FRACUNIT, + (V_SNAPTORIGHT|V_SNAPTOTOP) | opacityFlag, + NULL, + MED_FONT, connectedservername );