mirror of
https://github.com/netbirdio/IronRDP.git
synced 2026-05-22 18:43:12 -07:00
fix(connector): fix cursor rendering in Windows 2019 (#444)
This change fixes cursor rendering in Windows 2019 and older. Previously only text cursor was rendered, all others defaulted to native cursor from client. Set of flags matches what is used in FreeRDP.
This commit is contained in:
@@ -337,7 +337,9 @@ fn create_client_confirm_active(
|
||||
// Setting `LargePointerSupportFlags::UP_TO_384X384_PIXELS` allows server to send
|
||||
// `TS_FP_LARGEPOINTERATTRIBUTE` update messages, which are required for client-side
|
||||
// rendering of pointers bigger than 96x96 pixels.
|
||||
flags: LargePointerSupportFlags::UP_TO_384X384_PIXELS,
|
||||
// `LargePointerSupportFlags::UP_TO_96X96_PIXELS` is needed for proper cursor behavior
|
||||
// in Windows 2019 and older
|
||||
flags: LargePointerSupportFlags::UP_TO_96X96_PIXELS | LargePointerSupportFlags::UP_TO_384X384_PIXELS,
|
||||
}),
|
||||
CapabilitySet::SurfaceCommands(SurfaceCommands {
|
||||
flags: CmdFlags::SET_SURFACE_BITS | CmdFlags::STREAM_SURFACE_BITS | CmdFlags::FRAME_MARKER,
|
||||
|
||||
Reference in New Issue
Block a user