(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

pull/155/head
rubidium 11 years ago
parent 8ba0735ff3
commit 76bcf534e2

@ -393,6 +393,11 @@ bool VideoDriver_SDL::CreateMainSurface(uint w, uint h)
_screen.dst_ptr = newscreen->pixels; _screen.dst_ptr = newscreen->pixels;
_sdl_screen = newscreen; _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 *blitter = BlitterFactoryBase::GetCurrentBlitter();
blitter->PostResize(); blitter->PostResize();

Loading…
Cancel
Save