mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Gamma Init
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using WindowsDisplayAPI.Native.Structures;
|
||||
|
||||
namespace WindowsDisplayAPI.Native.DisplayConfig.Structures
|
||||
{
|
||||
// Internal undocumented structure
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
internal struct DisplayConfigGetSourceDPIScale
|
||||
{
|
||||
// ReSharper disable once PrivateFieldCanBeConvertedToLocalVariable
|
||||
[MarshalAs(UnmanagedType.Struct)] private readonly DisplayConfigDeviceInfoHeader _Header;
|
||||
|
||||
[field: MarshalAs(UnmanagedType.U4)]
|
||||
public int MinimumScaleSteps { get; }
|
||||
|
||||
[field: MarshalAs(UnmanagedType.U4)]
|
||||
public int CurrentScaleSteps { get; }
|
||||
|
||||
[field: MarshalAs(UnmanagedType.U4)]
|
||||
public int MaximumScaleSteps { get; }
|
||||
|
||||
public DisplayConfigGetSourceDPIScale(LUID adapter, uint sourceId) : this()
|
||||
{
|
||||
_Header = new DisplayConfigDeviceInfoHeader(adapter, sourceId, GetType());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user