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

Fix rendering on HiDPI #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

m-pilia
Copy link

@m-pilia m-pilia commented Nov 28, 2019

This is a possible fix to #26, by disabling automatic DPI scaling in the Qt application and let the system handle it.

This is admittedly not tested on Windows or Mac.

Testing on Arch Linux, KDE, monitor resolution 3200x1800, scale factor set to 2.0 through KScreen settings.

import numpy as np
import pptk
x = np.random.rand(100, 3)
v = pptk.viewer(x)

Screenshot_20191128_122105

Resolves #26

Disable automatic DPI scaling in the Qt application and let the system
handle it. This prevents breaking the rendering of the OpenGL context.
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.

Issue with HiDPI on Linux
1 participant