Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust DEVMODE structure fields #1329

Merged
merged 1 commit into from
Oct 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 42 additions & 2 deletions generation/WinSDK/enums.json
Original file line number Diff line number Diff line change
Expand Up @@ -31602,6 +31602,7 @@
},
{
"name": "DEVMODE_COLOR",
"type": "ushort",
"autoPopulate": {
"filter": "DMCOLOR_",
"header": "wingdi.h"
Expand All @@ -31620,6 +31621,7 @@
},
{
"name": "DEVMODE_DUPLEX",
"type": "ushort",
"autoPopulate": {
"filter": "DMDUP_",
"header": "wingdi.h"
Expand All @@ -31628,16 +31630,17 @@
"uses": [
{
"struct": "DEVMODEW",
"field": "dmColor"
"field": "dmDuplex"
},
{
"struct": "DEVMODEA",
"field": "dmColor"
"field": "dmDuplex"
}
]
},
{
"name": "DEVMODE_COLLATE",
"type": "ushort",
"autoPopulate": {
"filter": "DMCOLLATE_",
"header": "wingdi.h"
Expand All @@ -31654,8 +31657,45 @@
}
]
},
{
"name": "DEVMODE_DISPLAY_ORIENTATION",
"autoPopulate": {
"filter": "DMDO_",
"header": "wingdi.h"
},
"members": [],
"uses": [
{
"struct": "DEVMODEW::_Anonymous1_e__Union::_Anonymous2_e__Struct",
"field": "dmDisplayOrientation"
},
{
"struct": "DEVMODEA::_Anonymous1_e__Union::_Anonymous2_e__Struct",
"field": "dmDisplayOrientation"
}
]
},
{
"name": "DEVMODE_DISPLAY_FIXED_OUTPUT",
"autoPopulate": {
"filter": "DMDFO_",
"header": "wingdi.h"
},
"members": [],
"uses": [
{
"struct": "DEVMODEW::_Anonymous1_e__Union::_Anonymous2_e__Struct",
"field": "dmDisplayFixedOutput"
},
{
"struct": "DEVMODEA::_Anonymous1_e__Union::_Anonymous2_e__Struct",
"field": "dmDisplayFixedOutput"
}
]
},
{
"name": "DEVMODE_TRUETYPE_OPTION",
"type": "ushort",
"autoPopulate": {
"filter": "DMTT_",
"header": "wingdi.h"
Expand Down
27 changes: 27 additions & 0 deletions scripts/ChangesSinceLastRelease.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2129,3 +2129,30 @@ Windows.Win32.System.EventLog.EVT_SEEK_FLAGS.value__...System.Int32 => System.UI
Windows.Win32.System.EventLog.EVT_SUBSCRIBE_CALLBACK.Invoke : Event...IntPtr => EVT_HANDLE
Windows.Win32.System.EventLog.EVT_SUBSCRIBE_FLAGS.value__...System.Int32 => System.UInt32
Windows.Win32.System.EventLog.EVT_VARIANT._Anonymous_e__Union.EvtHandleVal...System.IntPtr => Windows.Win32.System.EventLog.EVT_HANDLE
# Tweaks to DEVMODE structures
Windows.Win32.Graphics.Gdi.Apis.DMDFO_CENTER removed
Windows.Win32.Graphics.Gdi.Apis.DMDFO_DEFAULT removed
Windows.Win32.Graphics.Gdi.Apis.DMDFO_STRETCH removed
Windows.Win32.Graphics.Gdi.Apis.DMDO_180 removed
Windows.Win32.Graphics.Gdi.Apis.DMDO_270 removed
Windows.Win32.Graphics.Gdi.Apis.DMDO_90 removed
Windows.Win32.Graphics.Gdi.Apis.DMDO_DEFAULT removed
Windows.Win32.Graphics.Gdi.DEVMODE_COLLATE.value__...System.UInt32 => System.UInt16
Windows.Win32.Graphics.Gdi.DEVMODE_COLOR.value__...System.UInt32 => System.UInt16
Windows.Win32.Graphics.Gdi.DEVMODE_DUPLEX.value__...System.UInt32 => System.UInt16
Windows.Win32.Graphics.Gdi.DEVMODE_TRUETYPE_OPTION.value__...System.UInt32 => System.UInt16
Windows.Win32.Graphics.Gdi.DEVMODEA._Anonymous1_e__Union._Anonymous2_e__Struct.dmDisplayFixedOutput...System.UInt32 => Windows.Win32.System.SystemServices.DEVMODE_DISPLAY_FIXED_OUTPUT
Windows.Win32.Graphics.Gdi.DEVMODEA._Anonymous1_e__Union._Anonymous2_e__Struct.dmDisplayOrientation...System.UInt32 => Windows.Win32.System.SystemServices.DEVMODE_DISPLAY_ORIENTATION
Windows.Win32.Graphics.Gdi.DEVMODEA.dmDuplex...System.Int16 => Windows.Win32.Graphics.Gdi.DEVMODE_DUPLEX
Windows.Win32.Graphics.Gdi.DEVMODEW._Anonymous1_e__Union._Anonymous2_e__Struct.dmDisplayFixedOutput...System.UInt32 => Windows.Win32.System.SystemServices.DEVMODE_DISPLAY_FIXED_OUTPUT
Windows.Win32.Graphics.Gdi.DEVMODEW._Anonymous1_e__Union._Anonymous2_e__Struct.dmDisplayOrientation...System.UInt32 => Windows.Win32.System.SystemServices.DEVMODE_DISPLAY_ORIENTATION
Windows.Win32.Graphics.Gdi.DEVMODEW.dmDuplex...System.Int16 => Windows.Win32.Graphics.Gdi.DEVMODE_DUPLEX
Windows.Win32.System.SystemServices.DEVMODE_DISPLAY_FIXED_OUTPUT added
Windows.Win32.System.SystemServices.DEVMODE_DISPLAY_FIXED_OUTPUT.DMDFO_CENTER added
Windows.Win32.System.SystemServices.DEVMODE_DISPLAY_FIXED_OUTPUT.DMDFO_DEFAULT added
Windows.Win32.System.SystemServices.DEVMODE_DISPLAY_FIXED_OUTPUT.DMDFO_STRETCH added
Windows.Win32.System.SystemServices.DEVMODE_DISPLAY_ORIENTATION added
Windows.Win32.System.SystemServices.DEVMODE_DISPLAY_ORIENTATION.DMDO_180 added
Windows.Win32.System.SystemServices.DEVMODE_DISPLAY_ORIENTATION.DMDO_270 added
Windows.Win32.System.SystemServices.DEVMODE_DISPLAY_ORIENTATION.DMDO_90 added
Windows.Win32.System.SystemServices.DEVMODE_DISPLAY_ORIENTATION.DMDO_DEFAULT added