Page 1 of 1

STK 1.2 RC 1 (Windows 10, 64bit): resolution

PostPosted: 28 Jul 2020, 10:50
by forum
Hello!

Under Windows 10, you can change the screen scaling, e.g. from 100% to 150%, which makes sense when using it on a TV, sitting a few feet away (else, you could barely read anything).

However, when the scaling of Windows is set to something else than 100%, this has impact on the resolution setting in STK: Instead of keeping a new STK resolution of e.g. 1920x1080, it reverts back to 1280x720. It is impossible to set it higher.

When setting the scaling in Windows to 100%, STK's resolution can be set to 1920x1080.

Is this a bug or just so by design?

Re: STK 1.2 RC 1 (Windows 10, 64bit): resolution

PostPosted: 28 Jul 2020, 11:21
by benau
Need to ask sdl2 people

Re: STK 1.2 RC 1 (Windows 10, 64bit): resolution

PostPosted: 28 Jul 2020, 19:13
by QwertyChouskie
@Benau check https://discourse.libsdl.org/t/sdl2-hid ... em/22943/3 as it has a code snippet that should (hopefully) fix this.

Re: STK 1.2 RC 1 (Windows 10, 64bit): resolution

PostPosted: 28 Jul 2020, 19:35
by benau
that code seems not very stable and untested

Re: STK 1.2 RC 1 (Windows 10, 64bit): resolution

PostPosted: 28 Jul 2020, 20:43
by QwertyChouskie
The other option is a manifest with the right key to tell Windows that the application is DPI-aware: https://docs.microsoft.com/en-us/archiv ... indows-8-1

Re: STK 1.2 RC 1 (Windows 10, 64bit): resolution

PostPosted: 28 Jul 2020, 22:07
by forum
Thank you so much for following up on this. As Windows on a TV set (with only 1920x1080 pixels) is barely readable, I have to set the scaling to 150%. If STK could work nevertheless at the maximum possible solution (1920x1080 in my case) in full screen, this would be great. Am I the only guy with this scenario and problem?

Re: STK 1.2 RC 1 (Windows 10, 64bit): resolution

PostPosted: 29 Jul 2020, 03:55
by QwertyChouskie
There is a workaround, I forget the exact details but if you right-click the STK shortcut, and go to the Compatibility tab, somewhere there's an option to let the application handle HiDPI scaling and bypass Windows's scaling.

Re: STK 1.2 RC 1 (Windows 10, 64bit): resolution

PostPosted: 29 Jul 2020, 09:55
by forum
Oh :cool: I will try that (cannot do so right now). Thank you so much! :)

Re: STK 1.2 RC 1 (Windows 10, 64bit): resolution

PostPosted: 01 Aug 2020, 12:07
by forum
I confirm that this workaround works. ;)