mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-15 11:31:16 +01:00
19 lines
620 B
C#
19 lines
620 B
C#
|
namespace Ryujinx.HLE.HOS.Services.Vi.RootService.ApplicationDisplayService
|
|||
|
{
|
|||
|
static class AndroidSurfaceComposerClient
|
|||
|
{
|
|||
|
// NOTE: This is android::SurfaceComposerClient::getDisplayInfo.
|
|||
|
public static (ulong, ulong) GetDisplayInfo(ServiceCtx context, ulong displayId = 0)
|
|||
|
{
|
|||
|
// TODO: This need to be REd, it should returns the driver resolution and more.
|
|||
|
if (context.Device.System.State.DockedMode)
|
|||
|
{
|
|||
|
return (1920, 1080);
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
return (1280, 720);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|