From cd94d0927a7a877c7ae59b94c110d1cd5079038e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 28 Mar 2017 20:49:06 +0200 Subject: [PATCH] - fixed a problems with BeginHUD clobbering gST_Y. The code involved is a total mess and needs some cleanup. --- src/g_statusbar/shared_sbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_statusbar/shared_sbar.cpp b/src/g_statusbar/shared_sbar.cpp index fe4028091..240c30fac 100644 --- a/src/g_statusbar/shared_sbar.cpp +++ b/src/g_statusbar/shared_sbar.cpp @@ -510,7 +510,7 @@ DEFINE_ACTION_FUNCTION(DBaseStatusBar, BeginStatusBar) void DBaseStatusBar::BeginHUD(int resW, int resH, double Alpha, bool forcescaled) { - SetSize(0, resW, resH); // this intentionally resets the relative top to force the caller to go through BeginStatusBar and not just reset some variables. + SetSize(RelTop, resW, resH); this->Alpha = Alpha; ForcedScale = forcescaled; CompleteBorder = false;