Skip to content
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

Windows 11 Display Scaling causing game to minimize #2930

Open
2 tasks done
Kuitar5 opened this issue Aug 23, 2023 · 5 comments
Open
2 tasks done

Windows 11 Display Scaling causing game to minimize #2930

Kuitar5 opened this issue Aug 23, 2023 · 5 comments
Assignees
Labels
bug Something isn't working jak1

Comments

@Kuitar5
Copy link

Kuitar5 commented Aug 23, 2023

Acknowledgements

  • I have searched for duplicate or closed bug reports
  • 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 example 125%
  • 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

@Kuitar5 Kuitar5 added bug Something isn't working jak1 labels Aug 23, 2023
@BreakPoints
Copy link
Contributor

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

@bob7l
Copy link

bob7l commented Sep 6, 2023

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

@xTVaser
Copy link
Member

xTVaser commented Sep 6, 2023

what you linked was attempted, it fixed some problems, clearly not all of them. https://github.com/open-goal/jak-project/pull/2730/files

@bob7l
Copy link

bob7l commented Sep 6, 2023

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

@xTVaser
Copy link
Member

xTVaser commented Sep 6, 2023

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).

@xTVaser xTVaser self-assigned this Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working jak1
Projects
None yet
Development

No branches or pull requests

4 participants