Page 1 of 1

Scaling issue with remote desktop

Posted: 29 Nov 2018 19:21
by jwgiron
When I remote desktop into my laptop running XYplorer, the application does not scale properly. Restarting the application has no effect.
Attached are screenshots showing a direct login versus a remote login.
Both computers are running Windows 10 Enterprise.
Below is the related output of "Various Information" in each case (not sure why I can't attach a .txt file to a post).
Direct login:
DblClick Time: 550 ms
Screen: 3840x2160, 1/1 (Primary), Virtual: (0, 0) - (3840, 2160), Work: (0, 0) - (3840, 2080)
Screen DPI: 205.714285714286 (214.285714285714%), twx: 7, stretch: 2
Screen Color Depth: 32
DPI awareness: Per monitor
UseDPIAwareIconSizes: Yes, Yes
Icon Size: Small=16, Large=32
Icon Size Controls: Small=32, Large=64
Icon Size Recommended: Small=32, Large=64

Remote Desktop login:
DblClick Time: 550 ms
Screen: 3840x2160, 1/1 (Primary), Virtual: (0, 0) - (2560, 1600), Work: (0, 0) - (2560, 1520)
Screen DPI: 205.714285714286 (214.285714285714%), twx: 7, stretch: 2
Screen Color Depth: 32
DPI awareness: Per monitor
UseDPIAwareIconSizes: Yes, Yes
Icon Size: Small=16, Large=32
Icon Size Controls: Small=32, Large=64
Icon Size Recommended: Small=32, Large=64

Remote Desktop login (after XYplorer restart):
DblClick Time: 550 ms
Screen: 1920x1080, 1/1 (Primary), Virtual: (0, 0) - (1920, 1080), Work: (0, 0) - (1920, 1040)
Screen DPI: 205.714285714286 (214.285714285714%), twx: 7, stretch: 2
Screen Color Depth: 32
DPI awareness: Per monitor
UseDPIAwareIconSizes: Yes, Yes
Icon Size: Small=16, Large=32
Icon Size Controls: Small=32, Large=64
Icon Size Recommended: Small=32, Large=64

Re: Scaling issue with remote desktop

Posted: 30 Nov 2018 08:41
by admin
Does it help if you set this tweak:
NoAutoScaling=1

You can do this using the new function editconf():

1) Start XYplorer
2) paste this into the Address Bar and press ENTER:

Code: Select all

editconf 4 , "NoAutoScaling=*";
3) A dialog will open where you should now see the line NoAutoScaling=0
4) change it to NoAutoScaling=1 via pressing F2
5) press OK in the dialog
6) XY will restart

Re: Scaling issue with remote desktop

Posted: 03 Dec 2018 16:56
by jwgiron
The "NoAutoScaling=1" did not fix the issue (it was a little worse, with the icons now overlapping the text).
2018-12-03 08_53_30-Clipboard.png

Re: Scaling issue with remote desktop

Posted: 03 Dec 2018 17:13
by admin
Remote Desktop login:
DblClick Time: 550 ms
Screen: 3840x2160, 1/1 (Primary), Virtual: (0, 0) - (2560, 1600), Work: (0, 0) - (2560, 1520)
I assume the bold line above is totally wrong?

Re: Scaling issue with remote desktop

Posted: 03 Dec 2018 17:44
by jwgiron
Yes, that seems like a bogus resolution during the remote session, since the computer I'm remoting from has a resolution of 1920x1080.
Here are the resolutions reported during various logins:
1. Direct login: 3840x2160
2. Leave app running. Then remote login: 3840x2160
3. Restart app while remoted: 1920x1080
4. Leave app running. Then direct login: 2160x1080
5. Restart app while direct login: 3840x2160

Re: Scaling issue with remote desktop

Posted: 03 Dec 2018 17:56
by admin
OK, at the moment I have no idea what's going there. Weird stuff. Need some research...

Re: Scaling issue with remote desktop

Posted: 03 Dec 2018 21:14
by jwgiron
I found two other applications on my computer that behave in a similar manner.
I read through this Microsoft post:
https://support.microsoft.com/en-us/hel ... pi-devices
If I go to the XYplorer.exe application Properties (Compatibility tab), and select:
"Override high DPI scaling behavior, scaling performed by: System"
the scaling seems good, with the exception of the toolbar icons.
2018-12-03 13_03_26-Clipboard.png
When I run the Sysinternals Process Explorer, it shows DPI Awareness to be "Unaware".
2018-12-03 13_07_42-Clipboard.png

Re: Scaling issue with remote desktop

Posted: 03 Dec 2018 21:31
by admin
What are those values (Screen: 3840x2160, 1/1 (Primary), Virtual: (0, 0) - (2560, 1600), Work: (0, 0) - (2560, 1520) etc) when you do that?

Re: Scaling issue with remote desktop

Posted: 03 Dec 2018 21:42
by jwgiron
Direct and remote login (both before and after restart of app):
Screen: 1920x1080, 1/1 (Primary), Virtual: (0, 0) - (1920, 1080), Work: (0, 0) - (1920, 1040)
Screen DPI: 96 (100%), twx: 15, stretch: 1
Screen Color Depth: 32
DPI awareness: Unaware
UseDPIAwareIconSizes: No, Yes
Icon Size: Small=16, Large=32
Icon Size Controls: Small=16, Large=32
Icon Size Recommended: Small=16, Large=32

Note the icons are enlarged for both direct and remote login.

Re: Scaling issue with remote desktop

Posted: 03 Dec 2018 22:23
by admin
Okay, looks good. Thanks for finding the solution! Gotta make a note... :tup: :beer:

I think re the toolbar you have to adjust it yourself via Tools | Customize Toolbar... (Ctrl+Shift+F9)