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
1 changed files with 17 additions and 0 deletions
|
@ -977,6 +977,13 @@ namespace OpenTK.Platform.Windows
|
|||
|
||||
#endregion
|
||||
|
||||
#region GetDeviceCaps
|
||||
|
||||
[DllImport("gdi32.dll", CharSet = CharSet.Auto, SetLastError = true, ExactSpelling = true)]
|
||||
public static extern int GetDeviceCaps(IntPtr hDC, DeviceCaps nIndex);
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region Input functions
|
||||
|
@ -2971,6 +2978,16 @@ namespace OpenTK.Platform.Windows
|
|||
|
||||
#endregion
|
||||
|
||||
#region DeviceCaps
|
||||
|
||||
enum DeviceCaps
|
||||
{
|
||||
LogPixelsX = 88,
|
||||
LogPixelsY = 90
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region internal enum DisplayModeSettingsEnum
|
||||
|
||||
internal enum DisplayModeSettingsEnum
|
||||
|
|
Loading…
Reference in a new issue