summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-08-14 15:19:03 +0200
committerGitHub <noreply@github.com>2023-08-14 15:19:03 +0200
commitc1016b68aed45a383ed5513983e84924d6175d9d (patch)
tree9212914121e093972cf3ee95094e68f18d770acd /src
parentMerge pull request #11259 from german77/hid (diff)
parentnvnflinger: add missing scale mode (diff)
downloadyuzu-c1016b68aed45a383ed5513983e84924d6175d9d.tar
yuzu-c1016b68aed45a383ed5513983e84924d6175d9d.tar.gz
yuzu-c1016b68aed45a383ed5513983e84924d6175d9d.tar.bz2
yuzu-c1016b68aed45a383ed5513983e84924d6175d9d.tar.lz
yuzu-c1016b68aed45a383ed5513983e84924d6175d9d.tar.xz
yuzu-c1016b68aed45a383ed5513983e84924d6175d9d.tar.zst
yuzu-c1016b68aed45a383ed5513983e84924d6175d9d.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/nvnflinger/buffer_queue_producer.cpp1
-rw-r--r--src/core/hle/service/nvnflinger/window.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/service/nvnflinger/buffer_queue_producer.cpp b/src/core/hle/service/nvnflinger/buffer_queue_producer.cpp
index b16f9933f..dc6917d5d 100644
--- a/src/core/hle/service/nvnflinger/buffer_queue_producer.cpp
+++ b/src/core/hle/service/nvnflinger/buffer_queue_producer.cpp
@@ -449,6 +449,7 @@ Status BufferQueueProducer::QueueBuffer(s32 slot, const QueueBufferInput& input,
case NativeWindowScalingMode::ScaleToWindow:
case NativeWindowScalingMode::ScaleCrop:
case NativeWindowScalingMode::NoScaleCrop:
+ case NativeWindowScalingMode::PreserveAspectRatio:
break;
default:
LOG_ERROR(Service_Nvnflinger, "unknown scaling mode {}", scaling_mode);
diff --git a/src/core/hle/service/nvnflinger/window.h b/src/core/hle/service/nvnflinger/window.h
index 61cca5b01..36d6cde3d 100644
--- a/src/core/hle/service/nvnflinger/window.h
+++ b/src/core/hle/service/nvnflinger/window.h
@@ -41,6 +41,7 @@ enum class NativeWindowScalingMode : s32 {
ScaleToWindow = 1,
ScaleCrop = 2,
NoScaleCrop = 3,
+ PreserveAspectRatio = 4,
};
/// Transform parameter for QueueBuffer