-
-
Notifications
You must be signed in to change notification settings - Fork 392
-
Star 2.9k < 8000 /div>
Program screen goes completely black after the program is minimized in taskbar and then brought to the foreground #6036
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is a different OS (Linux), but it might be relevant: |
Interesting, I was not able to reproduce this issue so far using the "View World" screen. Is this observed with SDL1 or SDL2? What resolution is set in the game? |
Hello @oleg-derevenetz,
Windows 7 - 64 bits - SDL2 - 640 x 480 |
I tested this on my 32-bit Win 7 SDL2 and I was able to replicate it. I had version 0.9.14 on the same PC and it did not show this behavior when restoring from minimized. |
These symptoms indicate that we do not refresh frame for this dialog. I think we can come up with something simple and efficient at the same time by calling an internal sdl function to refresh screen. |
Hi @LeHerosInconnu , can you please test the latest build to se if the issue is gone? |
Hi, @ihhub. I tested this on my win 7 x86 setup with latest SDL2 snapshot and the problem was still reproducible. |
Hello @ihhub,
This is still the case on Windows 7 - 64 bits - SDL2 - 640 x 480, with version 0.9.21 6251. |
Could you please run the engine in debug mode and then attach the log file? I would like to see if there is something related to SDL. |
Preliminary checks
Platform
Windows
Describe the bug
In windowed mode (when a View spell is active or the View World screen is used), when the game window is minimized in the taskbar, then the game is brought to the foreground (by clicking on the game icon in the taskbar), the game window is completely black (or sometimes completely white).
It is necessary to switch to another program (by clicking its icon in the taskbar) and then return to the game window (again by clicking its icon in the taskbar) so that the content of the window is displayed correctly.
In fheroes2:
Save file
Not needed.
Additional info
Related closed issue: #3392.
The text was updated successfully, but these errors were encountered: