Browse Source
Merge pull request #11281 from liamwhite/vi-scale-mode
nvnflinger: add missing scale mode
pull/15/merge
liamwhite
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
0 deletions
-
src/core/hle/service/nvnflinger/buffer_queue_producer.cpp
-
src/core/hle/service/nvnflinger/window.h
|
|
|
@ -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); |
|
|
|
|
|
|
|
@ -41,6 +41,7 @@ enum class NativeWindowScalingMode : s32 { |
|
|
|
ScaleToWindow = 1, |
|
|
|
ScaleCrop = 2, |
|
|
|
NoScaleCrop = 3, |
|
|
|
PreserveAspectRatio = 4, |
|
|
|
}; |
|
|
|
|
|
|
|
/// Transform parameter for QueueBuffer |
|
|
|
|