Skip to content

Commit

Permalink
settings: auto resolution is tied to clipboard sharing
Browse files Browse the repository at this point in the history
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
  • Loading branch information
osy committed Mar 11, 2022
1 parent 660adb3 commit 2c4fa07
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Platform/Shared/VMConfigDisplayView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 2c4fa07

Please sign in to comment.