From c7f57614de2d1bc7874262db623da2d180516014 Mon Sep 17 00:00:00 2001 From: toaster Date: Tue, 11 Jul 2023 23:41:13 +0100 Subject: [PATCH] Fix the accidential reduction in wordwrap width for New Chat messages --- src/hu_stuff.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/hu_stuff.c b/src/hu_stuff.c index 28d7afebf..e97d41183 100644 --- a/src/hu_stuff.c +++ b/src/hu_stuff.c @@ -1271,10 +1271,10 @@ boolean HU_Responder(event_t *ev) // Precompile a wordwrapped string to any given width. // Now a wrapper for the chat drawer. -static char *CHAT_WordWrap(INT32 x, INT32 w, fixed_t scale, INT32 option, const char *string) +static char *CHAT_WordWrap(INT32 w, fixed_t scale, INT32 option, const char *string) { return V_ScaledWordWrap( - (w - x) << FRACBITS, + w << FRACBITS, scale, FRACUNIT, FRACUNIT, option, HU_FONT, @@ -1312,7 +1312,7 @@ static void HU_drawMiniChat(void) for (; i > 0; i--) { - char *msg = CHAT_WordWrap(x, boxw-4, scale, V_SNAPTOBOTTOM|V_SNAPTOLEFT, chat_mini[i-1]); + char *msg = CHAT_WordWrap(boxw-4, scale, V_SNAPTOBOTTOM|V_SNAPTOLEFT, chat_mini[i-1]); size_t j = 0; INT32 linescount = 1; @@ -1352,7 +1352,7 @@ static void HU_drawMiniChat(void) INT32 timer = ((cv_chattime.value*TICRATE)-chat_timers[i]) - cv_chattime.value*TICRATE+9; // see below... INT32 transflag = (timer >= 0 && timer <= 9) ? (timer*V_10TRANS) : 0; // you can make bad jokes out of this one. size_t j = 0; - char *msg = CHAT_WordWrap(x, boxw-4, scale, V_SNAPTOBOTTOM|V_SNAPTOLEFT, chat_mini[i]); // get the current message, and word wrap it. + char *msg = CHAT_WordWrap(boxw-4, scale, V_SNAPTOBOTTOM|V_SNAPTOLEFT, chat_mini[i]); // get the current message, and word wrap it. INT32 linescount = 1; @@ -1460,7 +1460,7 @@ static void HU_drawChatLog(INT32 offset) for (i=0; i