Skip to content

Conversation

@einarf
Copy link
Member

@einarf einarf commented Sep 6, 2024

We should obey the UI scaling on windows by default. This is supported in pyglet 2.1. Users with 4k screens no longer need to look at a postage stamp of a window.

It looks like the scaling in pyglet doesn't work like on MacOS/retina were the window size stays unchanged. Only framebuffer size increases and you get a pixel ratio between them. The plan in pyglet is to support two modes:

  • "window_only": you are supposed to scale the content yourself
  • "window_and_content": Like MacOS/retina

Related issue: pyglet/pyglet#1202

@pushfoo pushfoo changed the title Enable scaling on windows by default Enable HiDPI scaling on Windows by default Sep 7, 2024
@pushfoo
Copy link
Member

pushfoo commented Sep 7, 2024

I can't test this at the moment, but I don't see a reason not to merge it. @DragonMoffon or @DigiDuncan, can you try it on one of your systems?

@einarf
Copy link
Member Author

einarf commented Sep 14, 2024

  • Can be merged when 2.1.dev6 is out.
  • We need to disable scaling for unit tests.

@DragonMoffon
Copy link
Collaborator

Pyglet dev6 just released if we want to look into this again

@pushfoo
Copy link
Member

pushfoo commented Oct 4, 2024

I finished #2385:

  • type checking / import linting
  • tests which occasionally fail (it's mouse position triggering extra mouse enter events)

@einarf einarf merged commit 6e86607 into development Oct 13, 2024
@einarf einarf deleted the win-scaling branch October 13, 2024 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants