pemsley / coot

Software for macromolecular model-building
http://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/
GNU General Public License v3.0
114 stars 45 forks source link

Incorrect Canvas View on HiDPI Display with Scaling #117

Open mapaulson opened 4 months ago

mapaulson commented 4 months ago

Hi, I've finally got round to installing a v.1 release (1.107, compiled using autobuilder script) on a Linux machine (Ubuntu 22.04), with a HiDPI (4K) display. Everything works beautifully except the main graphics window, where the molecule display area is confined to the bottom left-hand quarter of the canvas - the other three quarters are blank. This appears to be related to display scaling - I have this set at 200% in the display manager settings (GNOME). Switching to 100% scaling works fine, except that everything is too small to see.

Oddly enough, all the other Coot UI elements (toolbars etc) work fine with the 200% scaling, as do previous 0.9x releases of Coot. Any ideas how I could tackle this?

Thanks,

pemsley commented 4 months ago

Thank you for this bug report. I have seen something like this on macOS when plugged into a projector. But this is the first time on Ubuntu. If I can reproduce it, I can hopefully fix it.

pemsley commented 4 months ago

Ah, I can reproduce it - sort of.

Interesting...

mapaulson commented 1 hour ago

I can confirm that the MacOS workaround for this here https://github.com/pemsley/coot/issues/33#issuecomment-2148752964 also works for the Linux HiDPI issue.