I’m wondering if there is a simple “true-false” type return function in SDL which gives information about fullscreen status of a window? I.e. something like
SDL_IsWindowFullscreen(SDL_Window* window)
I couldn’t seem to find anything directly related to this? The only other way I can think of is manually checking the window dimensions against maximum screen dimensions. But I’d like to avoid that if SDL offers a direct method of querying.
Note that SDL_WINDOW_FULLSCREEN_DESKTOP has two bits set, the one of SDL_WINDOW_FULLSCREEN and another one to tell it apart from “normal” fullscreen mode, so the full check for “normal” fullscreen (if it’s not an else-case of an if checking for windowed fullscreen) would be if( (windowFlags & SDL_WINDOW_FULLSCREEN_DESKTOP) == SDL_WINDOW_FULLSCREEN)
@ROSY Saves me having to store my own vars and make functions to see what the user did to fullscreen mode. It’s more practical to have a one-liner in SDL which does all this
@ROSY it wouldn’t make sense to add an extra “1 byte”, if it’s already done by SDL. Implementing extra code and checks, which are already provided by SDL (like SDL_GetWindowFlags), doesn’t make much sense (unless you have a good reason to do so, which I don’t)