Set maximum window size for SDL
This commit is contained in:
parent
692390feb7
commit
a2ecd5dbdd
1 changed files with 3 additions and 0 deletions
|
|
@ -1552,6 +1552,9 @@ static SDL_bool Impl_CreateWindow(SDL_bool fullscreen)
|
|||
return SDL_FALSE;
|
||||
}
|
||||
|
||||
SDL_SetWindowMinimumSize(window, BASEVIDWIDTH, BASEVIDHEIGHT);
|
||||
SDL_SetWindowMaximumSize(window, MAXVIDWIDTH, MAXVIDHEIGHT);
|
||||
|
||||
#ifdef USE_WINDOW_ICON
|
||||
Impl_SetWindowIcon();
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue