mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
22 lines
796 B
C#
22 lines
796 B
C#
using System.Runtime.InteropServices;
|
|
using WindowsDisplayAPI.Native.Structures;
|
|
|
|
namespace WindowsDisplayAPI.Native.DisplayConfig.Structures
|
|
{
|
|
// Internal undocumented structure
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
internal struct DisplayConfigSetSourceDPIScale
|
|
{
|
|
// ReSharper disable once PrivateFieldCanBeConvertedToLocalVariable
|
|
[MarshalAs(UnmanagedType.Struct)] private readonly DisplayConfigDeviceInfoHeader _Header;
|
|
|
|
[field: MarshalAs(UnmanagedType.U4)]
|
|
public int ScaleSteps { get; }
|
|
|
|
public DisplayConfigSetSourceDPIScale(LUID adapter, uint sourceId, int scaleSteps) : this()
|
|
{
|
|
_Header = new DisplayConfigDeviceInfoHeader(adapter, sourceId, GetType());
|
|
ScaleSteps = scaleSteps;
|
|
}
|
|
}
|
|
} |