Skip to content

GUACAMOLE-1852: Send a desktop scale factor to the RDP server.#682

Open
stephzero1 wants to merge 1 commit into
apache:mainfrom
stephzero1:GUACAMOLE-1852-rdp-desktop-scale-factor
Open

GUACAMOLE-1852: Send a desktop scale factor to the RDP server.#682
stephzero1 wants to merge 1 commit into
apache:mainfrom
stephzero1:GUACAMOLE-1852-rdp-desktop-scale-factor

Conversation

@stephzero1

Copy link
Copy Markdown

Add a new "desktop-scale-factor" RDP parameter (percentage, 100-500; 0 disables). When set, the value is sent to the server as the [MS-RDPBCGR] desktopScaleFactor, paired with a protocol-valid deviceScaleFactor (100/140/180, as required by the spec), so the remote Windows session scales its own UI. This makes it possible to request a device-pixel (high-resolution) framebuffer that stays sharp while keeping UI and text at a comfortable size. The same factor is included in the [MS-RDPEDISP] DISPLAYCONTROL_MONITOR_LAYOUT so it is preserved across dynamic display resizes. Out-of-range values are clamped; when the parameter is omitted the previous behavior is unchanged.

Add a new "desktop-scale-factor" RDP parameter (percentage, 100-500;
0 disables). When set, the value is sent to the server as the
[MS-RDPBCGR] desktopScaleFactor, paired with a protocol-valid
deviceScaleFactor (100/140/180, as required by the spec), so the remote
Windows session scales its own UI. This makes it possible to request a
device-pixel (high-resolution) framebuffer that stays sharp while keeping
UI and text at a comfortable size. The same factor is included in the
[MS-RDPEDISP] DISPLAYCONTROL_MONITOR_LAYOUT so it is preserved across
dynamic display resizes. Out-of-range values are clamped; when the
parameter is omitted the previous behavior is unchanged.
@stephzero1

Copy link
Copy Markdown
Author

The difference between before:
image
and after:
image

on my setup: 42" 4k display with 125% scale factor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant