From abac4b17588688d0b8241a303104c39ca92a87e8 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Mon, 1 Mar 2021 23:17:30 +0100 Subject: [PATCH] Fix c4df0f95: bootstrap was only showing a black screen (#8788) The bootstrap has the _switch_mode to SM_MENU, and never leaves this mode. Neither is it considered a modal window (while in some sense it really is). So .. we need to add another "draw anyway" exception, to make sure bootstrap is being drawn. --- src/video/video_driver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/video_driver.cpp b/src/video/video_driver.cpp index bcd646abdf..5e25184357 100644 --- a/src/video/video_driver.cpp +++ b/src/video/video_driver.cpp @@ -41,7 +41,7 @@ bool VideoDriver::Tick() } /* Prevent drawing when switching mode, as windows can be removed when they should still appear. */ - if (this->HasGUI() && cur_ticks >= this->next_draw_tick && (_switch_mode == SM_NONE || HasModalProgress())) { + if (this->HasGUI() && cur_ticks >= this->next_draw_tick && (_switch_mode == SM_NONE || _game_mode == GM_BOOTSTRAP || HasModalProgress())) { this->next_draw_tick += this->GetDrawInterval(); /* Avoid next_draw_tick getting behind more and more if it cannot keep up. */ if (this->next_draw_tick < cur_ticks - ALLOWED_DRIFT * this->GetDrawInterval()) this->next_draw_tick = cur_ticks;