From dd03f49ed2fecbbbfc9ea3b483cea265cff18529 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Fri, 24 Nov 2023 09:05:04 +0100 Subject: [PATCH] [client,wayland] fixed wrong settings getter --- client/Wayland/wlf_disp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/Wayland/wlf_disp.c b/client/Wayland/wlf_disp.c index 5418fddc9..095a1a17b 100644 --- a/client/Wayland/wlf_disp.c +++ b/client/Wayland/wlf_disp.c @@ -63,7 +63,7 @@ static BOOL wlf_disp_settings_changed(wlfDispContext* wlfDisp) return TRUE; if (wlfDisp->lastSentDesktopOrientation != - freerdp_settings_get_uint32(settings, FreeRDP_DesktopOrientation)) + freerdp_settings_get_uint16(settings, FreeRDP_DesktopOrientation)) return TRUE; if (wlfDisp->lastSentDesktopScaleFactor != @@ -93,7 +93,7 @@ static BOOL wlf_update_last_sent(wlfDispContext* wlfDisp) wlfDisp->lastSentWidth = wlfDisp->targetWidth; wlfDisp->lastSentHeight = wlfDisp->targetHeight; wlfDisp->lastSentDesktopOrientation = - freerdp_settings_get_uint32(settings, FreeRDP_DesktopOrientation); + freerdp_settings_get_uint16(settings, FreeRDP_DesktopOrientation); wlfDisp->lastSentDesktopScaleFactor = freerdp_settings_get_uint32(settings, FreeRDP_DesktopScaleFactor); wlfDisp->lastSentDeviceScaleFactor = @@ -143,7 +143,7 @@ static BOOL wlf_disp_sendResize(wlfDispContext* wlfDisp) layout.Top = layout.Left = 0; layout.Width = wlfDisp->targetWidth; layout.Height = wlfDisp->targetHeight; - layout.Orientation = freerdp_settings_get_uint32(settings, FreeRDP_DesktopOrientation); + layout.Orientation = freerdp_settings_get_uint16(settings, FreeRDP_DesktopOrientation); layout.DesktopScaleFactor = freerdp_settings_get_uint32(settings, FreeRDP_DesktopScaleFactor); layout.DeviceScaleFactor = freerdp_settings_get_uint32(settings, FreeRDP_DeviceScaleFactor);