Changeset - r24982:e1cfbcf8356c
[Not reviewed]
master
0 1 0
Patric Stout - 3 years ago 2021-03-01 22:17:30
truebrain@openttd.org
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.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/video/video_driver.cpp
Show inline comments
 
@@ -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;
0 comments (0 inline, 0 general)