yuzu-emu
/
yuzu
Archived
1
0
Fork 0

nvnflinger: add missing scale mode

This commit is contained in:
Liam 2023-08-13 13:56:58 -04:00
parent 26ff214719
commit 7351884588
2 changed files with 2 additions and 0 deletions

View File

@ -449,6 +449,7 @@ Status BufferQueueProducer::QueueBuffer(s32 slot, const QueueBufferInput& input,
case NativeWindowScalingMode::ScaleToWindow: case NativeWindowScalingMode::ScaleToWindow:
case NativeWindowScalingMode::ScaleCrop: case NativeWindowScalingMode::ScaleCrop:
case NativeWindowScalingMode::NoScaleCrop: case NativeWindowScalingMode::NoScaleCrop:
case NativeWindowScalingMode::PreserveAspectRatio:
break; break;
default: default:
LOG_ERROR(Service_Nvnflinger, "unknown scaling mode {}", scaling_mode); LOG_ERROR(Service_Nvnflinger, "unknown scaling mode {}", scaling_mode);

View File

@ -41,6 +41,7 @@ enum class NativeWindowScalingMode : s32 {
ScaleToWindow = 1, ScaleToWindow = 1,
ScaleCrop = 2, ScaleCrop = 2,
NoScaleCrop = 3, NoScaleCrop = 3,
PreserveAspectRatio = 4,
}; };
/// Transform parameter for QueueBuffer /// Transform parameter for QueueBuffer