scenerygraphics / sciview

sciview is a tool for visualization and interaction with ND image and mesh data
BSD 2-Clause "Simplified" License
62 stars 17 forks source link

Render issues when Windows Display scaling is not 100% #553

Open smlpt opened 4 months ago

smlpt commented 4 months ago

Whenever a new sciview window is launched, the rendered region does not take the GUI scaling from Windows into account, meaning it may render a smaller region:

image.png

Once you rescale the window, it will adjust to the actual bounds. The width of the empty area is exactly 25% larger than that of the rendered area. This corresponds perfectly to my 125% system scale setting.

This issue is likely related to #475 and #469, which are also caused by incorrect handling of HiDPI and Windows display scaling.

This is on Windows, but it would be interesting to know if this also affects Linux/Mac or if these systems handle display scaling differently (I believe so).

smlpt commented 4 months ago

See also this Zulip thread