diff --git a/Ryujinx.HLE/HOS/Services/Vi/IApplicationDisplayService.cs b/Ryujinx.HLE/HOS/Services/Vi/IApplicationDisplayService.cs index 039cc81f40..b0bb5f1ced 100644 --- a/Ryujinx.HLE/HOS/Services/Vi/IApplicationDisplayService.cs +++ b/Ryujinx.HLE/HOS/Services/Vi/IApplicationDisplayService.cs @@ -35,6 +35,7 @@ namespace Ryujinx.HLE.HOS.Services.Vi { 2030, CreateStrayLayer }, { 2031, DestroyStrayLayer }, { 2101, SetLayerScalingMode }, + { 2102, ConvertScalingMode }, { 5202, GetDisplayVSyncEvent } }; @@ -176,6 +177,17 @@ namespace Ryujinx.HLE.HOS.Services.Vi return 0; } + private long ConvertScalingMode(ServiceCtx context) + { + int scalingMode = context.RequestData.ReadInt32(); + + // Currently, the "source" scaling mode is mapped 1:1 + // to the "target" scaling mode. + context.ResponseData.Write((ulong)scalingMode); + + return 0; + } + public long GetDisplayVSyncEvent(ServiceCtx context) { string name = GetDisplayName(context);