Changeset - r25174:cd6e798283ea
[Not reviewed]
master
0 1 0
Rubidium - 3 years ago 2021-04-12 18:52:00
rubidium@openttd.org
Fix: [Video] fast forward boolean states not initialised, potentially causing unstoppable fast forward
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/video/video_driver.hpp
Show inline comments
 
@@ -33,13 +33,13 @@ extern bool _video_vsync;
 
/** The base of all video drivers. */
 
class VideoDriver : public Driver {
 
	const uint DEFAULT_WINDOW_WIDTH = 640u;  ///< Default window width.
 
	const uint DEFAULT_WINDOW_HEIGHT = 480u; ///< Default window height.
 

	
 
public:
 
	VideoDriver() : is_game_threaded(true), change_blitter(nullptr) {}
 
	VideoDriver() : fast_forward_key_pressed(false), fast_forward_via_key(false), is_game_threaded(true), change_blitter(nullptr) {}
 

	
 
	/**
 
	 * Mark a particular area dirty.
 
	 * @param left   The left most line of the dirty area.
 
	 * @param top    The top most line of the dirty area.
 
	 * @param width  The width of the dirty area.
0 comments (0 inline, 0 general)