mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-06-19 01:27:50 +00:00
35 lines
859 B
C#
35 lines
859 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using OpenTK.Platform;
|
|
|
|
namespace OpenTK.Platform.iPhoneOS
|
|
{
|
|
class AndroidDisplayDeviceDriver : IDisplayDeviceDriver
|
|
{
|
|
static DisplayDevice dev;
|
|
static AndroidDisplayDeviceDriver()
|
|
{
|
|
dev = new DisplayDevice();
|
|
dev.IsPrimary = true;
|
|
dev.BitsPerPixel = 16;
|
|
}
|
|
|
|
public DisplayDevice GetDisplay(DisplayIndex displayIndex)
|
|
{
|
|
return (displayIndex == DisplayIndex.First || displayIndex == DisplayIndex.Primary) ? dev : null;
|
|
}
|
|
|
|
|
|
public bool TryChangeResolution(DisplayDevice device, DisplayResolution resolution)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public bool TryRestoreResolution(DisplayDevice device)
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
}
|