8000 Program screen goes completely black after the program is minimized in taskbar and then brought to the foreground · Issue #6036 · ihhub/fheroes2 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Open
2 tasks done
LeHerosInconnu opened this issue Oct 24, 2022 · 9 comments
Labels
bug Something doesn't work ui UI/GUI related stuff
Milestone

Comments

@LeHerosInconnu
Copy link

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:

View spells 001

View spells 002

Save file

Not needed.

Additional info

Related closed issue: #3392.

@LeHerosInconnu LeHerosInconnu added the bug Something doesn't work label Oct 24, 2022
@zenseii
Copy link
Collaborator
zenseii commented Oct 24, 2022

This is a different OS (Linux), but it might be relevant:
#4770

@oleg-derevenetz oleg-derevenetz added the ui UI/GUI related stuff label Oct 24, 2022
@oleg-derevenetz oleg-derevenetz added this to the 0.9.21 milestone Oct 24, 2022
@oleg-derevenetz
Copy link
Collaborator

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?

@LeHerosInconnu
Copy link
Author

Hello @oleg-derevenetz,

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?

Windows 7 - 64 bits - SDL2 - 640 x 480

@zenseii
Copy link
Collaborator
zenseii commented Oct 24, 2022

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.
It did not happen on my Win 10 device.

@ihhub
Copy link
Owner
ihhub commented Oct 25, 2022

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.

@ihhub ihhub modified the milestones: 0.9.21, 1.0 Nov 12, 2022
@ihhub
Copy link
Owner
ihhub commented Nov 20, 2022

Hi @LeHerosInconnu , can you please test the latest build to se if the issue is gone?

@zenseii
Copy link
Collaborator
zenseii commented Nov 20, 2022

Hi, @ihhub. I tested this on my win 7 x86 setup with latest SDL2 snapshot and the problem was still reproducible.

@LeHerosInconnu
Copy link
Author

Hello @ihhub,

Hi @LeHerosInconnu , can you please test the latest build to se if the issue is gone?

This is still the case on Windows 7 - 64 bits - SDL2 - 640 x 480, with version 0.9.21 6251.

@ihhub ihhub modified the milestones: 1.0, 1.0.1 Dec 20, 2022
@ihhub ihhub modified the milestones: 1.0.1, 1.0.2 Feb 8, 2023
@ihhub ihhub modified the milestones: 1.0.2, 1.0.3 Mar 12, 2023
@ihhub ihhub modified the milestones: 1.0.3, 1.0.4 Apr 11, 2023
@ihhub ihhub modified the milestones: 1.0.4, 1.0.5 May 13, 2023
@ihhub ihhub modified the milestones: 1.0.5, 1.0.6 Jun 14, 2023
@ihhub ihhub modified the milestones: 1.0.6, 1.0.7 Jul 15, 2023
@ihhub ihhub modified the milestones: 1.0.7, 1.0.8 Aug 14, 2023
@ihhub
Copy link
Owner
ihhub commented Aug 22, 2023

Hi, @ihhub. I tested this on my win 7 x86 setup with latest SDL2 snapshot and the problem was still reproducible.

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.

@ihhub ihhub modified the milestones: 1.0.8, 1.0.9 Sep 11, 2023
@ihhub ihhub modified the milestones: 1.0.9, 1.1.0 Oct 11, 2023
@ihhub ihhub modified the milestones: 1.1.0, 1.1.1 May 22, 2024
@ihhub ihhub modified the milestones: 1.1.1, 1.1.2 Jul 13, 2024
@ihhub ihhub modified the milestones: 1.1.2, 1.1.3 Sep 15, 2024
@ihhub ihhub modified the milestones: 1.1.3, 1.1.4 Oct 23, 2024
@ihhub ihhub modified the milestones: 1.1.4, 1.1.5 Nov 27, 2024
@ihhub ihhub modified the milestones: 1.1.5, 1.1.6 Dec 30, 2024
@ihhub ihhub modified the milestones: 1.1.6, 1.1.7 Feb 16, 2025
@ihhub ihhub modified the milestones: 1.1.7, 1.1.8 Mar 23, 2025
@ihhub ihhub modified the milestones: 1.1.8, 1.1.9 May 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something doesn't work ui UI/GUI related stuff
Projects
None yet
Development

No branches or pull requests

4 participants
0