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

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

Postby forum » 28 Jul 2020, 10:50

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?
Best regards, 7wells
forum
 
Posts: 148
Joined: 04 May 2020, 12:29

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

Postby benau » 28 Jul 2020, 11:21

Need to ask sdl2 people
Image
benau
STK Moderator
 
Posts: 349
Joined: 08 Dec 2015, 17:32

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

Postby QwertyChouskie » 28 Jul 2020, 19:13

@Benau check https://discourse.libsdl.org/t/sdl2-hid ... em/22943/3 as it has a code snippet that should (hopefully) fix this.
Huge fan of/occasional contributor to STK!
User avatar
QwertyChouskie
 
Posts: 480
Joined: 29 Jun 2016, 14:57

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

Postby benau » 28 Jul 2020, 19:35

that code seems not very stable and untested
Image
benau
STK Moderator
 
Posts: 349
Joined: 08 Dec 2015, 17:32

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

Postby QwertyChouskie » 28 Jul 2020, 20:43

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
Huge fan of/occasional contributor to STK!
User avatar
QwertyChouskie
 
Posts: 480
Joined: 29 Jun 2016, 14:57

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

Postby forum » 28 Jul 2020, 22:07

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?
Best regards, 7wells
forum
 
Posts: 148
Joined: 04 May 2020, 12:29

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

Postby QwertyChouskie » 29 Jul 2020, 03:55

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.
Huge fan of/occasional contributor to STK!
User avatar
QwertyChouskie
 
Posts: 480
Joined: 29 Jun 2016, 14:57

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

Postby forum » 29 Jul 2020, 09:55

Oh :cool: I will try that (cannot do so right now). Thank you so much! :)
Best regards, 7wells
forum
 
Posts: 148
Joined: 04 May 2020, 12:29

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

Postby forum » 01 Aug 2020, 12:07

I confirm that this workaround works. ;)
Best regards, 7wells
forum
 
Posts: 148
Joined: 04 May 2020, 12:29

Who is online

Users browsing this forum: Lorenzo der seltsame and 1 guest