- fixed a problems with BeginHUD clobbering gST_Y.

The code involved is a total mess and needs some cleanup.
This commit is contained in:
Christoph Oelckers 2017-03-28 20:49:06 +02:00
parent e8ba1156af
commit cd94d0927a

View file

@ -510,7 +510,7 @@ DEFINE_ACTION_FUNCTION(DBaseStatusBar, BeginStatusBar)
void DBaseStatusBar::BeginHUD(int resW, int resH, double Alpha, bool forcescaled) 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; this->Alpha = Alpha;
ForcedScale = forcescaled; ForcedScale = forcescaled;
CompleteBorder = false; CompleteBorder = false;