Set min/max window size

This commit is contained in:
pk-2000 2020-12-31 07:15:51 +02:00 committed by GitHub
parent 8c24ebf83a
commit e6ffd3e145
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -126,6 +126,9 @@ void EventThread::process(RGSSThreadData &rtData)
int defScreenW, defScreenH; int defScreenW, defScreenH;
defScreenW = rtData.config.defScreenW; defScreenW = rtData.config.defScreenW;
defScreenH = rtData.config.defScreenH; defScreenH = rtData.config.defScreenH;
SDL_GetDesktopDisplayMode(0, &dm);
SDL_SetWindowMaximumSize(win, dm.w, dm.h);
SDL_SetWindowMinimumSize(win, 544, 416);
SDL_SetWindowSize(win, 544, 416); SDL_SetWindowSize(win, 544, 416);
int defScreenW_new, defScreenH_new; int defScreenW_new, defScreenH_new;
int firstrun; int firstrun;