mirror of
https://github.com/digarok/gsplus.git
synced 2024-06-17 22:29:48 +00:00
fix for refresh on window changes (fullscreen)
This commit is contained in:
parent
ca91bc4ab4
commit
83a3adb4f9
|
@ -358,11 +358,14 @@ check_input_events()
|
|||
void
|
||||
check_input_events_sdl()
|
||||
{
|
||||
// @todo: make sure it's not queueing events / processing full queue each call
|
||||
int motion = 0;
|
||||
SDL_Event event;
|
||||
|
||||
while (SDL_PollEvent(&event)) {
|
||||
/* Check all window events (mostly for Fullscreen) */
|
||||
if (event.type == SDL_WINDOWEVENT) {
|
||||
set_refresh_needed();
|
||||
}
|
||||
switch( event.type ){
|
||||
case SDL_KEYDOWN:
|
||||
case SDL_KEYUP:
|
||||
|
|
Loading…
Reference in New Issue
Block a user