fixed screen redraw if fading area differs from redraw area
authorHolger Schemel <info@artsoft.org>
Mon, 30 May 2016 00:01:31 +0000 (02:01 +0200)
committerHolger Schemel <info@artsoft.org>
Mon, 30 May 2016 00:01:31 +0000 (02:01 +0200)
src/tools.c

index 30e9cd5660b5de185b254e3600845d92d49b29e3..4080f2d2e2621b0c1efbad149a389ab9be829450 100644 (file)
@@ -739,6 +739,9 @@ static void SetScreenStates_AfterFadingIn()
 
 static void SetScreenStates_BeforeFadingOut()
 {
+  // required if "fade_mask != redraw_mask" (fading only affects fade area)
+  BackToFront();
+
   // store new target screen (to use correct masked border for fading)
   gfx.fade_border_target_status = game_status;