Full screen World does not appear properly after alt-tab if system display scaling is not 100%

Issue #40 new
Scott Mooney created an issue

When a World is created at a different (lower) resolution to current system resolution, and display scaling is not 100% (e.g. 150% in the screenshot above), it appears correctly at first but then appears cropped (X and Y) and offset (Y only) when alt-tabbing out and in. Resolution appears to be set correctly, but something about the scaling is not being handled (e.g. here, it appears to be offset 1/3 of the way up the display, with the top 1/3 not visible at all, and cropped 1/3 both horizontally and vertically).

This screenshot was taken on a 3840x2160 system resolution with a 1920x1080 full screen World, as shown in the console on the right (which is only visible because of this issue).

Comments (1)

  1. Jeremy Hill

    This has got to be an issue in the underlying GLFW windowing library.

    The Shady release uses an old version of GLFW, 3.2.1, from 2016. It should be possible to upgrade—I have once in recent months checked out GLFW's bleeding edge from git (marked as version 3.4.0, which is not yet released: the latest release is 3.3.2, from 2020-01-20), patched it (the same HACK sections still needed fixing as before), compiled the library, linked Shady against it and tested it (but only briefly, and only on macOS).

    The GLFW version history at https://www.glfw.org/changelog.html contains little that might suggest this problem has been encountered/fixed—although the following might be relevant, and worth exploring:

    Version 3.3 (released 2019-04-15)

    * Added GLFW_SCALE_TO_MONITOR window hint for automatic window resizing (#676,#1115)

    * [Win32] Bugfix: Window was resized twice when entering full screen (#1085)

  2. Log in to comment