mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 07:21:12 +00:00
Reset screen faders in clear()
Fixes a black screen when loading a game while waiting/resting.
This commit is contained in:
parent
d10985e481
commit
f6c227b966
@ -119,6 +119,12 @@ namespace MWGui
|
||||
queue(time, percent/100.f);
|
||||
}
|
||||
|
||||
void ScreenFader::clear()
|
||||
{
|
||||
clearQueue();
|
||||
notifyAlphaChanged(0.f);
|
||||
}
|
||||
|
||||
void ScreenFader::setFactor(float factor)
|
||||
{
|
||||
mFactor = factor;
|
||||
|
@ -42,6 +42,8 @@ namespace MWGui
|
||||
void fadeOut(const float time);
|
||||
void fadeTo(const int percent, const float time);
|
||||
|
||||
void clear();
|
||||
|
||||
void setFactor (float factor);
|
||||
void setRepeat(bool repeat);
|
||||
|
||||
|
@ -1589,8 +1589,6 @@ namespace MWGui
|
||||
|
||||
mForceHidden = GW_None;
|
||||
|
||||
setWerewolfOverlay(false);
|
||||
|
||||
while (!mGuiModes.empty())
|
||||
popGuiMode();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user