summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-08-13 19:56:58 +0200
committerLiam <byteslice@airmail.cc>2023-08-13 19:57:02 +0200
commit7351884588f42fb5667025722a531f07bad72357 (patch)
tree7fea2bce1dc79d2da67c070d501c58dd522838aa /src/core
parentMerge pull request #11219 from zeltermann/title-id-search (diff)
downloadyuzu-7351884588f42fb5667025722a531f07bad72357.tar
yuzu-7351884588f42fb5667025722a531f07bad72357.tar.gz
yuzu-7351884588f42fb5667025722a531f07bad72357.tar.bz2
yuzu-7351884588f42fb5667025722a531f07bad72357.tar.lz
yuzu-7351884588f42fb5667025722a531f07bad72357.tar.xz
yuzu-7351884588f42fb5667025722a531f07bad72357.tar.zst
yuzu-7351884588f42fb5667025722a531f07bad72357.zip
Diffstat (limited to 'src/core')
-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