// GetDisplayResolution(u64 display_id) -> (u64 width, u64 height) public ResultCode GetDisplayResolution(ServiceCtx context) { ulong displayId = context.RequestData.ReadUInt64(); (ulong width, ulong height) = AndroidSurfaceComposerClient.GetDisplayInfo(context, displayId); context.ResponseData.Write(width); context.ResponseData.Write(height); return(ResultCode.Success); }
// GetDisplayMode(u64) -> nn::vi::DisplayModeInfo public ResultCode GetDisplayMode(ServiceCtx context) { ulong displayId = context.RequestData.ReadUInt64(); (ulong width, ulong height) = AndroidSurfaceComposerClient.GetDisplayInfo(context, displayId); context.ResponseData.Write((uint)width); context.ResponseData.Write((uint)height); context.ResponseData.Write(60.0f); context.ResponseData.Write(0); Logger.Stub?.PrintStub(LogClass.ServiceVi); return(ResultCode.Success); }