From 2c4fa07689d41abaaeebff93a45d499252fe469c Mon Sep 17 00:00:00 2001 From: osy <50960678+osy@users.noreply.github.com> Date: Fri, 11 Mar 2022 10:41:45 -0800 Subject: [PATCH] settings: auto resolution is tied to clipboard sharing Both use the same SPICE agent port, so enabling one will enable the other and vice versa. Make this explicit to the user. Fixes #3748 --- Platform/Shared/VMConfigDisplayView.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Platform/Shared/VMConfigDisplayView.swift b/Platform/Shared/VMConfigDisplayView.swift index 93cec7b4d..623176542 100644 --- a/Platform/Shared/VMConfigDisplayView.swift +++ b/Platform/Shared/VMConfigDisplayView.swift @@ -53,6 +53,16 @@ struct VMConfigDisplayView: View { VMConfigStringPicker("Emulated Display Card", selection: $config.displayCard, rawValues: UTMQemuConfiguration.supportedDisplayCards(forArchitecture: config.systemArchitecture), displayValues: UTMQemuConfiguration.supportedDisplayCards(forArchitecturePretty: config.systemArchitecture)) } + DetailedSection("Auto Resolution", description: "Requires SPICE guest agent tools to be installed.") { + Toggle(isOn: $config.shareClipboardEnabled, label: { // share with clipboard setting + #if os(macOS) + Text("Resize display to window size automatically") + #else + Text("Resize display to screen size and orientation automatically") + #endif + }) + } + Section(header: Text("Scaling")) { VMConfigStringPicker("Upscaling", selection: $config.displayUpscaler, rawValues: UTMQemuConfiguration.supportedScalers(), displayValues: UTMQemuConfiguration.supportedScalersPretty()) VMConfigStringPicker("Downscaling", selection: $config.displayDownscaler, rawValues: UTMQemuConfiguration.supportedScalers(), displayValues: UTMQemuConfiguration.supportedScalersPretty())