From fe7c5ab7e9b5933a82e26e8e93589e557234d338 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Thu, 29 Jan 2026 22:04:15 +0100 Subject: [PATCH] [core,settings] improve rdpMonitor log stringify the orientation value in the log message. --- libfreerdp/core/settings.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libfreerdp/core/settings.c b/libfreerdp/core/settings.c index 993670e7b..5a3a65856 100644 --- a/libfreerdp/core/settings.c +++ b/libfreerdp/core/settings.c @@ -36,6 +36,7 @@ #include #include +#include #include #include @@ -567,10 +568,12 @@ static void log_monitor(UINT32 idx, const rdpMonitor* monitor, wLog* log, DWORD WLog_Print(log, level, "[%" PRIu32 "] [%s] {%dx%d-%dx%d} [%" PRIu32 "] {%" PRIu32 "x%" PRIu32 - ", orientation: %" PRIu32 ", desktopScale: %" PRIu32 ", deviceScale: %" PRIu32 "}", + ", orientation: %s [%" PRIu32 "], desktopScale: %" PRIu32 ", deviceScale: %" PRIu32 + "}", idx, monitor->is_primary ? "primary" : " ", monitor->x, monitor->y, monitor->width, monitor->height, monitor->orig_screen, monitor->attributes.physicalWidth, monitor->attributes.physicalHeight, + freerdp_desktop_rotation_flags_to_string(monitor->attributes.orientation), monitor->attributes.orientation, monitor->attributes.desktopScaleFactor, monitor->attributes.deviceScaleFactor); }