| Summary: | Black screen when unminimizing a maximized window | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Euank <sdl-bugzilla> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED ABANDONED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | j1401535, maarten.bonsema |
| Version: | 2.0.3 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 7 | ||
| Attachments: |
Simple bug demonstration
An example of how this bug can be worked around |
||
Created attachment 1636 [details]
An example of how this bug can be worked around
This should get fixed, the work-around creates a flicker induced by the restore + maximize command which is ugly and not something people would want in production code. I tried poking around in the source code, but managed to get nowhere as I'm completely unfamiliar with the internals of SDL2 nor a c/c++ expert. In windows 10 the behavior is slightly different: the window looks like it's restored, but no new render commands are processed. So the window keeps showing whatever was shown before minimizing. I noticed a similar bug (maybe the same?) using visual studio 2010 and windows 7. It dosn't happen when i use the dll downloaded from here: https://buildbot.libsdl.org/sdl-builds/sdl-visualstudio/sdl-visualstudio-2612.zip but it does happen with the dlls downloaded from here https://www.libsdl.org/tmp/release/SDL2-2.0.4-win32-x86.zip . Can you try with the latest SDL snapshot? http://www.libsdl.org/tmp/SDL-2.0.zip I just tried and wasn't able to reproduce it here. Thanks! Hello, and sorry if you're getting dozens of copies of this message by email. We are closing out bugs that appear to be abandoned in some form. This can happen for lots of reasons: we couldn't reproduce it, conversation faded out, the bug was noted as fixed in a comment but we forgot to mark it resolved, the report is good but the fix is impractical, we fixed it a long time ago without realizing there was an associated report, etc. Individually, any of these bugs might have a better resolution (such as WONTFIX or WORKSFORME or INVALID) but we've added a new resolution of ABANDONED to make this easily searchable and make it clear that it's not necessarily unreasonable to revive a given bug report. So if this bug is still a going concern and you feel it should still be open: please feel free to reopen it! But unless you respond, we'd like to consider these bugs closed, as many of them are several years old and overwhelming our ability to prioritize recent issues. (please note that hundred of bug reports were sorted through here, so we apologize for any human error. Just reopen the bug in that case!) Thanks, --ryan. |
Created attachment 1634 [details] Simple bug demonstration In windows, when I maximize a resizable window, then minimize it, and then restore it, it ends up as entirely black. The attached code is a very simple reproduction of this. I compiled it with: g++ black_screen.c -I/include -L/lib -lmingw32 -lSDL2main -mwindows -lSDL2 -o black_screen.exe I found a workaround (also included) of doing RestoreWindow/MaximizeWindow when it's in the "black screen" state, but this doesn't feel like an intended solution. I also noticed that no "SDL_WINDOWEVENT_RESTORED" happens when it's restored while maximized, though those occur otherwise. Let me know if I can provide more information. Best, Euan