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

Support for HighDPI displays #953

Closed
rainman110 opened this issue Feb 22, 2023 · 0 comments · Fixed by #954
Closed

Support for HighDPI displays #953

rainman110 opened this issue Feb 22, 2023 · 0 comments · Fixed by #954
Assignees

Comments

@rainman110
Copy link
Collaborator

rainman110 commented Feb 22, 2023

TiGL does not yet support HighDPI displays. When executed on a high dpi display, the 3D view will not be scaled correctly:

image

This glitch can be reproduced by setting the following environment variable:

QT_SCALE_FACTOR=2

Hints for a fix:

  • Qt uses Resolution Independent pixels, which are different than actual pixel counts on the display
  • There needs to be a conversion between Qt coordiantes and then OpenGL ones
  • classes TIGLQAspectWindow and TIGLViewerWidget need to be adapted
@rainman110 rainman110 self-assigned this Feb 22, 2023
rainman110 added a commit that referenced this issue Feb 22, 2023
This is a backport from out GTlab code and also works well for TiGL.

Please test this by setting the screen scaling (under windows display settings)
to 200%.

Closes #953
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 a pull request may close this issue.

1 participant