mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-05-08 10:42:10 +00:00
Added GetDeviceCaps (windows platform)
We will use this method to read out the logical DPI of the monitor and scale window elements accordingly.
This commit is contained in:
parent
f9fdddea64
commit
5d6ca5c7da
|
@ -977,6 +977,13 @@ namespace OpenTK.Platform.Windows
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region GetDeviceCaps
|
||||||
|
|
||||||
|
[DllImport("gdi32.dll", CharSet = CharSet.Auto, SetLastError = true, ExactSpelling = true)]
|
||||||
|
public static extern int GetDeviceCaps(IntPtr hDC, DeviceCaps nIndex);
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Input functions
|
#region Input functions
|
||||||
|
@ -2971,6 +2978,16 @@ namespace OpenTK.Platform.Windows
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region DeviceCaps
|
||||||
|
|
||||||
|
enum DeviceCaps
|
||||||
|
{
|
||||||
|
LogPixelsX = 88,
|
||||||
|
LogPixelsY = 90
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region internal enum DisplayModeSettingsEnum
|
#region internal enum DisplayModeSettingsEnum
|
||||||
|
|
||||||
internal enum DisplayModeSettingsEnum
|
internal enum DisplayModeSettingsEnum
|
||||||
|
|
Loading…
Reference in a new issue