Implement ConvertScalingMode

This commit is contained in:
jduncanator 2018-12-07 00:42:35 +11:00
parent 27017d2f6b
commit d94f2ffd32

View file

@ -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);