Ensure oldfadeamount is updated when fadeamount is

Like cutscene bars, I've added Graphics::setfade(), to ensure that no
deltaframe rendering glitches happen due to oldfadeamount not being
updated properly.

And indeed, this fixes a deltaframe rendering glitch that happens if you
return to the editor from playtesting on a faded-out screen, then fade
out again (by either re-entering playtesting and then cause a fadeout to
happen again, or by quitting from the editor afterwards). The same
glitch also happens outside of in-editor playtesting if you exit to the
menu while the screen is faded out.
This commit is contained in:
Misa
2021-03-19 23:09:11 -07:00
committed by Ethan Lee
parent f22756dd99
commit f6ecf83190
3 changed files with 11 additions and 5 deletions

View File

@@ -45,6 +45,7 @@ public:
void drawmenu(int cr, int cg, int cb, bool levelmenu = false);
void processfade(void);
void setfade(const int amount);
void drawfade(void);