open-cogsci / OpenSesame

Graphical experiment builder for the social sciences
http://osdoc.cogsci.nl/
GNU General Public License v3.0
236 stars 112 forks source link

Enable scaling on HiDPI displays #662

Closed dschreij closed 5 years ago

dschreij commented 5 years ago

This simple fix should cause OpenSesame to play well with HiDPI displays. Especially in setups with multiple monitors that each have different DPI, OpenSesame can behave funky when being dragged from one screen to another, causing it to display everything too large or too small. The example below is when I dragged OpenSesame from a HiDPI (4k) to lower dpi (Full HD) screen; everything became quite large.

OSScreenshot

Qt has built in functions to incorporate for this, thereby becoming 'dpi aware', but you need to explicitly activate this, and we never did so.