diff options
-rw-r--r-- | dispatch/d2dimports.hpp | 4 | ||||
-rw-r--r-- | specs/d2derr.py | 4 | ||||
-rw-r--r-- | specs/d3d9dxva2.py | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/dispatch/d2dimports.hpp b/dispatch/d2dimports.hpp index ef86dbd6..42d414c1 100644 --- a/dispatch/d2dimports.hpp +++ b/dispatch/d2dimports.hpp @@ -37,6 +37,10 @@ #include <d2d1.h> #include <dwrite.h> +#ifndef WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT +#define WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT 0x88982f80 +#endif + DEFINE_GUID(IID_ID2D1Resource,0x2cd90691,0x12e2,0x11dc,0x9f,0xed,0x00,0x11,0x43,0xa0,0x55,0xf9); DEFINE_GUID(IID_ID2D1Bitmap,0xa2296057,0xea42,0x4099,0x98,0x3b,0x53,0x9f,0xb6,0x50,0x54,0x26); DEFINE_GUID(IID_ID2D1GradientStopCollection,0x2cd906a7,0x12e2,0x11dc,0x9f,0xed,0x00,0x11,0x43,0xa0,0x55,0xf9); diff --git a/specs/d2derr.py b/specs/d2derr.py index 35898ac2..c6000039 100644 --- a/specs/d2derr.py +++ b/specs/d2derr.py @@ -27,7 +27,7 @@ from winapi import * -HRESULT = Enum("HRESULT", [ +HRESULT = MAKE_HRESULT(errors = [ "D2DERR_UNSUPPORTED_PIXEL_FORMAT", "D2DERR_INSUFFICIENT_BUFFER", "D2DERR_WRONG_STATE", @@ -50,7 +50,7 @@ HRESULT = Enum("HRESULT", [ "D2DERR_WRONG_FACTORY", "D2DERR_LAYER_ALREADY_IN_USE", "D2DERR_POP_CALL_DID_NOT_MATCH_PUSH", - "D2DERR_WRONG_RENDER_TARGET", + "D2DERR_WRONG_RESOURCE_DOMAIN", "D2DERR_PUSH_POP_UNBALANCED", "D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT", "D2DERR_INCOMPATIBLE_BRUSH_TYPES", diff --git a/specs/d3d9dxva2.py b/specs/d3d9dxva2.py index 5c52f98d..5ab4e21b 100644 --- a/specs/d3d9dxva2.py +++ b/specs/d3d9dxva2.py @@ -36,7 +36,7 @@ DXVA2_ProcAmp = Flags(UINT, [ "DXVA2_ProcAmp_Saturation", ]) -HRESULT = FakeEnum(HRESULT, [ +HRESULT = MAKE_HRESULT(errors = [ "DXVA2_E_NOT_INITIALIZED", "DXVA2_E_NEW_VIDEO_DEVICE", "DXVA2_E_VIDEO_DEVICE_LOCKED", |