From a6d4c2fd2ced835224440cf0490e99dad40de6c6 Mon Sep 17 00:00:00 2001 From: toaster Date: Mon, 1 Apr 2024 00:12:15 +0100 Subject: [PATCH] Do not extend Sealed Star progression bar off-screen in non-green resolution (resolves #1232) --- src/y_inter.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/y_inter.cpp b/src/y_inter.cpp index 836b62e23..9026f0abe 100644 --- a/src/y_inter.cpp +++ b/src/y_inter.cpp @@ -844,8 +844,14 @@ void Y_RoundQueueDrawer(y_data_t *standings, INT32 offset, boolean doanimations, UINT8 *greymap = R_GetTranslationColormap(TC_DEFAULT, SKINCOLOR_GREY, GTC_CACHE); - INT32 baseflags = (widescreen ? V_SNAPTOBOTTOM : 0); - INT32 bufferspace = ((vid.width/vid.dupx) - BASEVIDWIDTH) / 2; + INT32 baseflags = 0; + INT32 bufferspace = 0; + + if (widescreen) + { + baseflags |= V_SNAPTOBOTTOM; + bufferspace = ((vid.width/vid.dupx) - BASEVIDWIDTH) / 2; + } // Background pieces patch_t *queuebg_flat = static_cast(W_CachePatchName("R_RMBG1", PU_PATCH));