libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
9.99k stars 1.84k forks source link

SDL_SetWindowSize limits to desktop resolution, SDL_CreateWindow doesn't. #5548

Open icculus opened 2 years ago

icculus commented 2 years ago

Oh, interesting...SDL_CreateWindow() will let you make a window larger than the desktop, but SDL_SetWindowSize won't.

Originally posted by @icculus in https://github.com/libsdl-org/SDL/issues/3871#issuecomment-1092427167

This was on X11, don't know if that matters yet.

Decide which of these two API calls is correct.

slouken commented 2 years ago

I think originally both calls limited window size to desktop resolution, and we removed this limitation in CreateWindow but forgot SetWindowSize. I think there might be some tap dancing needed to make that work on all platforms.