[SDL2] - FULLSCREEN_DESKTOP - Screen Corruption When Switching To Full Screen?(Linux & Win 10)

Hi,

When our SDL2 application switches to full screen with below source code:
SDL_SetWindowFullscreen(visuals->Window, SDL_WINDOW_FULLSCREEN_DESKTOP);

we see screen corruption on the top-left of the application’s window?
Happens on both Windows 10 and Linux.

Please see below image to see this issue.
Is there something we can do to clear this area to black?
We are maintaining “keep aspect ratio” when the game’s window is switched to full screen.
(we are using current SDL 2.0.12 release on both Linux and Win 10)

You can grab the current stable build below on GitHub(it’s open-source).

Let us know, thanks!
We are shooting for a Christmas 2020 release!

Jesse

Hi,

We fixed the above.
Just clear the screen with a color before the switch to full screen…

Jesse