forked from teamnwah/openmw-tes3coop
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
3 changed files with 8 additions and 2 deletions
|
@ -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…
Reference in a new issue