aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Services/Vi/RootService/ApplicationDisplayService/AndroidSurfaceComposerClient.cs
blob: 782bb7d7ee9122e105bc1322b520c3596f01460e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
namespace Ryujinx.HLE.HOS.Services.Vi.RootService.ApplicationDisplayService
{
    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);
            }
        }
    }
}