From 128ccd4664eb3cac9b304e377253381671023b6b Mon Sep 17 00:00:00 2001 From: pk-2000 <63214388+pk-2000@users.noreply.github.com> Date: Mon, 11 May 2020 02:31:26 +0300 Subject: [PATCH] FPS on and Fullscreen Restore default win size and center on screen, after leaving fullscreen when fps is on. --- src/eventthread.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/eventthread.cpp b/src/eventthread.cpp index bd1aac3..1cff3f7 100644 --- a/src/eventthread.cpp +++ b/src/eventthread.cpp @@ -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 {