mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-25 22:05:20 -04:00
parent
a1753be2b2
commit
f001b48f8f
@ -1729,6 +1729,11 @@ void I_InitGraphics(void)
|
||||
ResetResolution(CurrentResolutionHeight(), true);
|
||||
CreateSurfaces(video.pitch, video.height);
|
||||
ResetLogicalSize();
|
||||
|
||||
// clear out events waiting at the start and center the mouse
|
||||
SDL_PumpEvents();
|
||||
SDL_FlushEvent(SDL_MOUSEMOTION);
|
||||
I_ResetRelativeMouseState();
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user