jak-project
jak-project copied to clipboard
Windows 11 Display Scaling causing game to minimize
Acknowledgements
- [X] I have searched for duplicate or closed bug reports
- [X] I understand that I am supposed to provide my own legitimately obtained copy of the game
Describe the Bug
On windows 11, it seems like the game automatically minimize to the task bar every time I open it if the scaling is not set to 100%
The setting can be found on System > Display > Scale & layout > Scale
Clicking on the icon in the task bar would also automatically minimize it which made it unusable.
This seems to be a problem that can happen to lot of fullscreen applications on w11 so not sure it's fixable on the project's side. But I still wanted to note it down.
How To Reproduce
- Use Windows 11
- Go to this setting
System > Display > Scale & layout > Scale - Change it to a value that's not
100%, for example125% - Start the game
- The game should automatically minimize to the task bar
- Trying to click on it should show the game for a fraction of a second then go back to minimized
Does this problem occur on original hardware or PCSX2?
Didn't check
Expected Behavior
Starting the game shouldn't automatically minimize it, especially after trying to click on it again.
Environment Information
- OpenGOAL v0.1.39
- Windows 11 Version 22H2
- CPU: Ryzen 5800H
- GPU: RTX 3070 (portable)
- RAM: 16GB
Game Version
NTSC 1.0 (black label)
Have you set the game to something other than 60fps?
No
Interesting, I've been poking at Windows display scaling support on W11 and I've not had this happen to me. It does, however, choose the wrong resolution on boot
You should be able to disable scaling for specific applications through properties->Compatibility->Change high DPI settings
OpenGoal could implement a fix too: https://learn.microsoft.com/en-us/windows/win32/api/shellscalingapi/nf-shellscalingapi-setprocessdpiawareness
what you linked was attempted, it fixed some problems, clearly not all of them. https://github.com/open-goal/jak-project/pull/2730/files
what you linked was attempted, it fixed some problems, clearly not all of them. https://github.com/open-goal/jak-project/pull/2730/files
Have you tried to set it in the manifest?
https://learn.microsoft.com/en-us/windows/win32/api/shellscalingapi/ne-shellscalingapi-process_dpi_awareness
No because:
- no idea how to make the manifest, we don't have a manifest at all
- SDL is supposed to handle this for us in some way, we are just doing something wrong / missing something.
SDL3 is supposed to make handling DPI much, much easier. And there's many issues over on their repo with people talking about potential solutions / fighting with things not working (which someone interested in solving the issue could reference).