Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Framebuffer size is incorrect on Linux with HiDPI display #52
I've created a new issue so we could figure this one out on here. Could you remind me which line I should edit to better test the cursor positioning bug. I use a wacom intuos 3 tablet btw.
When I move over the canvas with the wacom pencil, there is an offset from the screen position, and the canvas position.
Thanks for opening this! This bug is very likely due to the framebuffer being the incorrect size: the palette is also cut-off, and so is the session status bar. Effectively the framebuffer is exactly twice the resolution as the window, because
If you make the following change:
- let hidpi_factor = win.hidpi_factor(); + let hidpi_factor = 1.0;
You can force
Amaaaaaaaazing. I think I will introduce a CLI flag for now to turn off hidpi detection until I figure out why this is happening. It looks like hidpi detection is working, since you have a retina screen and it's detecting
If the interface is too small, you should be able scale it with