From 8d2c454670c58a080e3d7b7cf8bfe5b3fbd11be9 Mon Sep 17 00:00:00 2001 From: Roman Fomin Date: Sat, 16 Dec 2023 23:21:58 +0700 Subject: [PATCH] always center st_bar (#1339) --- src/st_stuff.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/st_stuff.c b/src/st_stuff.c index 1f449457..64f4d25a 100644 --- a/src/st_stuff.c +++ b/src/st_stuff.c @@ -376,14 +376,7 @@ void ST_refreshBackground(boolean force) return; } - if (SHORT(sbar->width) > video.unscaledw && SHORT(sbar->leftoffset) == 0) - { - st_x = ST_X + (SCREENWIDTH - SHORT(sbar->width)) / 2; - } - else - { - st_x = ST_X; - } + st_x = ST_X + (SCREENWIDTH - SHORT(sbar->width)) / 2 + SHORT(sbar->leftoffset); V_UseBuffer(st_backing_screen);