Changeset - r20502:41fec0dd1f60
[Not reviewed]
master
0 1 0
rubidium - 11 years ago 2013-06-29 18:21:19
rubidium@openttd.org
(svn r25523) -Fix [FS#5587]: SDL does not give an event when an application gets mouse focus while going to full screen, so manually force the mouse-is-in-window state
1 file changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/video/sdl_v.cpp
Show inline comments
 
@@ -393,6 +393,11 @@ bool VideoDriver_SDL::CreateMainSurface(
 
	_screen.dst_ptr = newscreen->pixels;
 
	_sdl_screen = newscreen;
 

	
 
	/* When in full screen, we will always have the mouse cursor
 
	 * within the window, even though SDL does not give us the
 
	 * appropriate event to know this. */
 
	if (_fullscreen) _cursor.in_window = true;
 

	
 
	Blitter *blitter = BlitterFactoryBase::GetCurrentBlitter();
 
	blitter->PostResize();
 

	
0 comments (0 inline, 0 general)