Opticos / gwsl

THIS IS THE GWSL WEBSITE SOURCE. Please see https://github.com/Opticos/GWSL-Source
https://opticos.github.io/gwsl/
Other
42 stars 5 forks source link

How do I override High DPI scaling of 'vcxsrv.exe' ? #6

Closed tshanli closed 3 years ago

tshanli commented 3 years ago

I tried overriding the high DPI scaling property of 'vcxsrv.exe' in the app directory(C:\Program Files\WindowsApps\28644OpticosStudios.GWSL_1.3.6.0_x64__r3mwbcqrwk84r\GWSL\VCXSRV\vcxsrv.exe), but it didn't take any effect, but the original 'vcxsrv.exe' is effective, and the in-app 'hi-dpi' setting has just zoomed in screen(also didn't scale any dpi). Any solution? gwsl_vcxsrv ori_vcxsrv

Pololot64 commented 3 years ago

I am working on finding a solution to this but cannot find a workaround for the store version yet. It should work on the traditional installer version... Actually since you have access to your apps folder, try applying the settings to these two files: image

tshanli commented 3 years ago

Yes, It works on applying high dpi settings to 'GWSL_vcxsrv.exe' of the installer version.Thanks.

Pololot64 commented 3 years ago

No problem. I am glad it worked. I am trying to find a way to automate this too but I am not there yet.

Pololot64 commented 3 years ago

I found a way to programmatically control this. I will try to implement it in a store build. I am unsure how it will work for the store version but it should be straightforward

Pololot64 commented 3 years ago

I made a way to do this automatically in the github version of 1.3.7 that I released Friday. You simply right click the GWSL systray icon --> Dpi Scaling Mode --> Options. image

tshanli commented 3 years ago

Thanks for your work! I've tested it on my machine and everything runs well. And now we have the handy option, but not implemented for store version yet?

Pololot64 commented 3 years ago

I have not found a way to implement it for the store yet unfortunately.

Pololot64 commented 3 years ago

Update: I just found a way to implement it I think!

mi-hol commented 3 years ago

Should this be closed?