From c47113ca2991109f5623094d83b0f1acec323a18 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Tue, 25 Oct 2022 13:05:09 +0300 Subject: [PATCH] Force screen redraw after playing movies Fixes #180 --- src/game_movie.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game_movie.cc b/src/game_movie.cc index a89bc45..7d9f899 100644 --- a/src/game_movie.cc +++ b/src/game_movie.cc @@ -284,6 +284,10 @@ int gameMoviePlay(int movie, int flags) windowDestroy(win); + // CE: Destroying a window redraws only content it was covering (centered + // 640x480). This leads to everything outside this rect to remain black. + windowRefreshAll(&_scr_size); + if ((flags & GAME_MOVIE_PAUSE_MUSIC) != 0) { backgroundSoundResume(); }