mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-25 18:24:59 +01:00
Revert "Fix unfocusing the game while in fullscreen mode"
This reverts commit c322ae131e
.
This commit is contained in:
parent
884035fd2e
commit
506628cef1
2 changed files with 5 additions and 9 deletions
|
@ -251,7 +251,6 @@ void KeyPoll::Poll()
|
||||||
SDL_SetWindowFullscreen(window, 0);
|
SDL_SetWindowFullscreen(window, 0);
|
||||||
}
|
}
|
||||||
SDL_DisableScreenSaver();
|
SDL_DisableScreenSaver();
|
||||||
resetWindow = true;
|
|
||||||
}
|
}
|
||||||
else if (evt.window.event == SDL_WINDOWEVENT_FOCUS_LOST)
|
else if (evt.window.event == SDL_WINDOWEVENT_FOCUS_LOST)
|
||||||
{
|
{
|
||||||
|
@ -264,19 +263,16 @@ void KeyPoll::Poll()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
SDL_EnableScreenSaver();
|
SDL_EnableScreenSaver();
|
||||||
resetWindow = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Mouse Focus */
|
/* Mouse Focus */
|
||||||
else if (evt.window.event == SDL_WINDOWEVENT_ENTER)
|
else if (evt.window.event == SDL_WINDOWEVENT_ENTER)
|
||||||
{
|
{
|
||||||
SDL_DisableScreenSaver();
|
SDL_DisableScreenSaver();
|
||||||
resetWindow = true;
|
|
||||||
}
|
}
|
||||||
else if (evt.window.event == SDL_WINDOWEVENT_LEAVE)
|
else if (evt.window.event == SDL_WINDOWEVENT_LEAVE)
|
||||||
{
|
{
|
||||||
SDL_EnableScreenSaver();
|
SDL_EnableScreenSaver();
|
||||||
resetWindow = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue