Implement ConvertScalingMode
This commit is contained in:
parent
27017d2f6b
commit
d94f2ffd32
1 changed files with 12 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue