If expression

This commit is contained in:
Ilia Malakhov 2023-07-29 00:51:42 +02:00
parent 18744481b3
commit ffa8223dc2

View file

@ -151,28 +151,28 @@ impl Gamescope {
// Set integer scaling // Set integer scaling
if self.integer_scaling { if self.integer_scaling {
if Gamescope::is_legacy_version() { gamescope += if Gamescope::is_legacy_version() {
gamescope += " -n"; " -n"
} else { } else {
gamescope += " -F integer" " -F integer"
} }
} }
// Set FSR support // Set FSR support
if self.fsr { if self.fsr {
if Gamescope::is_legacy_version() { gamescope += if Gamescope::is_legacy_version() {
gamescope += " -U"; " -U"
} else { } else {
gamescope += " -F fsr" " -F fsr"
} }
} }
// Set NIS (Nvidia Image Scaling) support // Set NIS (Nvidia Image Scaling) support
if self.nis { if self.nis {
if Gamescope::is_legacy_version() { gamescope += if Gamescope::is_legacy_version() {
gamescope += " -Y"; " -Y"
} else { } else {
gamescope += " -F nis" " -F nis"
} }
} }