The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
SDL_SetWindowFullscreen() results in a blank screen
M-374 LX


Joined: 05 May 2015
Posts: 7
After calling SDL_SetWindowFullscreen(SDL_WINDOW_FULLSCREEN_DESKTOP), nothing is drawn on the screen. What is wrong?
SDL_SetWindowFullscreen() results in a blank screen
JeZ-l-Lee


Joined: 20 Sep 2009
Posts: 572
Location: Long Island, New York, United States, Earth
Hi,

What O.S. platform?

If it's Linux, then you must unload all textures and unload renderer, then switch to full screen and reload renderer and reload all textures.
Hope that helps...

JeZxLee



On 05/10/2015 10:50 AM, M-374 LX wrote:

Quote:
After calling SDL_SetWindowFullscreen(SDL_WINDOW_FULLSCREEN_DESKTOP), nothing is drawn on the screen. What is wrong?


Quote:
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org