Black screen after restoring minimized window

Necro posting or not, but I have the same issue and I do not understand why does a maximized window when minimized to the taskbar and then restored again to it’s maximized state from taskbar appears black with nothing rendered?

Any other actions (except, minimizing to taskbar and restoring from taskbar) restore the screen to normal, not to mention that SDL_GetError produces absolutely nothing during the time I see the black screen.

Singular_One wrote:

When I maximize my program’s window and then minimize it, restoring the window will result in a completely black screen. Un-maximizing the window will render correctly again.
The problem does not occur when the window is not maximized, minimizing and restoring works fine.I am using renderers, and i have tried a few things related to window events but have not found a solution yet…
I am under Windows 7 64-bit.

What version of SDL are you using?

– David L.

… For context, I fixed an SDL bug similar to this. The fix made it into SDL 2.0.4. I’m wondering if an SDL update might fix this, for you.

Cheers!
– David L.

DLudwig wrote:

… For context, I fixed an SDL bug similar to this. The fix made it into SDL 2.0.4. I’m wondering if an SDL update might fix this, for you.

Cheers!
– David L.

Indeed, a fresh re-download of the binaries made this issue go away. I was still using 2.0.3 mistakenly thinking that I already had updated to 2.0.4, now that’s on me… Thank you!