mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03:00
Revert "Fix unfocusing the game while in fullscreen mode"
This reverts commit c322ae131e.
This commit is contained in:
@@ -251,7 +251,6 @@ void KeyPoll::Poll()
|
||||
SDL_SetWindowFullscreen(window, 0);
|
||||
}
|
||||
SDL_DisableScreenSaver();
|
||||
resetWindow = true;
|
||||
}
|
||||
else if (evt.window.event == SDL_WINDOWEVENT_FOCUS_LOST)
|
||||
{
|
||||
@@ -264,19 +263,16 @@ void KeyPoll::Poll()
|
||||
);
|
||||
}
|
||||
SDL_EnableScreenSaver();
|
||||
resetWindow = true;
|
||||
}
|
||||
|
||||
/* Mouse Focus */
|
||||
else if (evt.window.event == SDL_WINDOWEVENT_ENTER)
|
||||
{
|
||||
SDL_DisableScreenSaver();
|
||||
resetWindow = true;
|
||||
}
|
||||
else if (evt.window.event == SDL_WINDOWEVENT_LEAVE)
|
||||
{
|
||||
SDL_EnableScreenSaver();
|
||||
resetWindow = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -545,11 +545,11 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
if (key.resetWindow)
|
||||
{
|
||||
key.resetWindow = false;
|
||||
gameScreen.ResizeScreen(-1, -1);
|
||||
}
|
||||
if(key.resetWindow)
|
||||
{
|
||||
key.resetWindow = false;
|
||||
gameScreen.ResizeScreen(-1, -1);
|
||||
}
|
||||
|
||||
music.processmusic();
|
||||
graphics.processfade();
|
||||
|
||||
Reference in New Issue
Block a user