From 66654cf057832eda1606d8d664f2b64caa18b8cb Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 22 Sep 2008 14:52:42 +0200 Subject: [PATCH] wined3d: Add/update the D3DPRESENTFLAG constants. --- include/d3d8types.h | 2 ++ include/d3d9types.h | 2 ++ include/wine/wined3d_types.h | 7 +++++++ 3 files changed, 11 insertions(+) diff --git a/include/d3d8types.h b/include/d3d8types.h index 2ed2bf9c978..21e30b5e63c 100644 --- a/include/d3d8types.h +++ b/include/d3d8types.h @@ -1131,6 +1131,8 @@ typedef struct _D3DPRESENT_PARAMETERS_ { } D3DPRESENT_PARAMETERS; +#define D3DPRESENTFLAG_LOCKABLE_BACKBUFFER 0x00000001 + typedef struct _D3DRANGE { UINT Offset; UINT Size; diff --git a/include/d3d9types.h b/include/d3d9types.h index 86423392634..61e321c2e95 100644 --- a/include/d3d9types.h +++ b/include/d3d9types.h @@ -201,6 +201,8 @@ #define D3DPRESENTFLAG_DISCARD_DEPTHSTENCIL 0x00000002 /* Discard Z buffer */ #define D3DPRESENTFLAG_DEVICECLIP 0x00000004 /* Clip the window blited into the client area 2k + xp only */ #define D3DPRESENTFLAG_VIDEO 0x00000010 /* backbuffer 'may' contain video data */ +#define D3DPRESENTFLAG_NOAUTOROTATE 0x00000020 /* d3d9ex, ignore display rotation */ +#define D3DPRESENTFLAG_UNPRUNEDMODE 0x00000040 /* d3d9ex, specify invalid display modes */ #define D3DPRESENT_BACK_BUFFERS_MAX 3L #define D3DPRESENT_RATE_DEFAULT 0x00000000 diff --git a/include/wine/wined3d_types.h b/include/wine/wined3d_types.h index 5b722e775c0..2e7d5d7f339 100644 --- a/include/wine/wined3d_types.h +++ b/include/wine/wined3d_types.h @@ -888,6 +888,13 @@ typedef struct _WINED3DPRESENT_PARAMETERS { UINT PresentationInterval; } WINED3DPRESENT_PARAMETERS; +#define WINED3DPRESENTFLAG_LOCKABLE_BACKBUFFER 0x00000001 +#define WINED3DPRESENTFLAG_DISCARD_DEPTHSTENCIL 0x00000002 +#define WINED3DPRESENTFLAG_DEVICECLIP 0x00000004 +#define WINED3DPRESENTFLAG_VIDEO 0x00000010 +#define WINED3DPRESENTFLAG_NOAUTOROTATE 0x00000020 +#define WINED3DPRESENTFLAG_UNPRUNEDMODE 0x00000040 + typedef enum _WINED3DRESOURCETYPE { WINED3DRTYPE_SURFACE = 1, WINED3DRTYPE_VOLUME = 2,