always center st_bar (#1339)

This commit is contained in:
Roman Fomin 2023-12-16 23:21:58 +07:00 committed by GitHub
parent f012f8f839
commit 8d2c454670
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);