AndroidSurfaceComposerClient.cs 620 B

12345678910111213141516171819
  1. namespace Ryujinx.HLE.HOS.Services.Vi.RootService.ApplicationDisplayService
  2. {
  3. static class AndroidSurfaceComposerClient
  4. {
  5. // NOTE: This is android::SurfaceComposerClient::getDisplayInfo.
  6. public static (ulong, ulong) GetDisplayInfo(ServiceCtx context, ulong displayId = 0)
  7. {
  8. // TODO: This need to be REd, it should returns the driver resolution and more.
  9. if (context.Device.System.State.DockedMode)
  10. {
  11. return (1920, 1080);
  12. }
  13. else
  14. {
  15. return (1280, 720);
  16. }
  17. }
  18. }
  19. }