FPS on and Fullscreen

Restore default win size and center on screen, after leaving fullscreen when fps is on.
This commit is contained in:
pk-2000 2020-05-11 02:31:26 +03:00 committed by GitHub
parent 8eeb5b6d38
commit 128ccd4664
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -268,6 +268,8 @@ void EventThread::process(RGSSThreadData &rtData)
SDL_SetWindowTitle(win, pendingTitle);
pendingTitle[0] = '\0';
havePendingTitle = false;
SDL_SetWindowSize(win, defScreenW, defScreenH);
SDL_SetWindowPosition(win, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED);
}
else
{