I’m creating a window with SDL_WINDOW_FULLSCREEN_DESKTOP and then a renderer on it where I use SDL_RenderSetLogicalSize.
The window does not get into fullscreen + the rescaling is not applied for a few frames (rounds of SDL_PollEvent). Is that expected behavior?
As a workaround, I was doing while(SDL_PollEvent()); right after I created the window, the renderer and SDL_RenderSetLogicalSize. This put me right into fullscreen, but the render logical size rescaling was still not applied.
I tried several things, but in the end, this code also has the renderer rescaling applied:
The behaviour for switching in and out of FULLSCREEN_DESKTOP in OS X is different in SDL 2.0.4, it blocks while the transition is happening now.On Sep 10, 2014, at 11:24 AM, albert wrote:
Hi,
I’m creating a window with SDL_WINDOW_FULLSCREEN_DESKTOP and then a renderer on it where I use SDL_RenderSetLogicalSize.
The window does not get into fullscreen + the rescaling is not applied for a few frames (rounds of SDL_PollEvent). Is that expected behavior?
As a workaround, I was doing while(SDL_PollEvent()); right after I created the window, the renderer and SDL_RenderSetLogicalSize. This put me right into fullscreen, but the render logical size rescaling was still not applied.
I tried several things, but in the end, this code also has the renderer rescaling applied: