Skip to content

Commit

Permalink
remove unneeded definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
oltolm authored and doitsujin committed Apr 11, 2023
1 parent 8508633 commit 6b77920
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 53 deletions.
36 changes: 0 additions & 36 deletions src/d3d9/d3d9_include.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,38 +40,6 @@

// Missed definitions in Wine/MinGW.

#ifndef D3DPRESENT_BACK_BUFFERS_MAX_EX
#define D3DPRESENT_BACK_BUFFERS_MAX_EX 30
#endif

#ifndef D3DSI_OPCODE_MASK
#define D3DSI_OPCODE_MASK 0x0000FFFF
#endif

#ifndef D3DSP_TEXTURETYPE_MASK
#define D3DSP_TEXTURETYPE_MASK 0x78000000
#endif

#ifndef D3DUSAGE_AUTOGENMIPMAP
#define D3DUSAGE_AUTOGENMIPMAP 0x00000400L
#endif

#ifndef D3DSP_DCL_USAGE_MASK
#define D3DSP_DCL_USAGE_MASK 0x0000000f
#endif

#ifndef D3DSP_OPCODESPECIFICCONTROL_MASK
#define D3DSP_OPCODESPECIFICCONTROL_MASK 0x00ff0000
#endif

#ifndef D3DSP_OPCODESPECIFICCONTROL_SHIFT
#define D3DSP_OPCODESPECIFICCONTROL_SHIFT 16
#endif

#ifndef D3DCURSOR_IMMEDIATE_UPDATE
#define D3DCURSOR_IMMEDIATE_UPDATE 0x00000001L
#endif

#ifndef D3DPRESENT_FORCEIMMEDIATE
#define D3DPRESENT_FORCEIMMEDIATE 0x00000100L
#endif
Expand All @@ -82,10 +50,6 @@ typedef struct _D3DDEVINFO_RESOURCEMANAGER
{
char dummy;
} D3DDEVINFO_RESOURCEMANAGER, * LPD3DDEVINFO_RESOURCEMANAGER;

#ifndef __WINE__
extern "C" WINUSERAPI WINBOOL WINAPI SetProcessDPIAware(VOID);
#endif
#endif

// This is the managed pool on D3D9Ex, it's just hidden!
Expand Down
17 changes: 0 additions & 17 deletions src/dxgi/dxgi_include.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,3 @@
#include "../util/util_string.h"

#include <dxgi1_6.h>

// For some reason, these are not exposed
#ifndef DXGI_RESOURCE_PRIORITY_NORMAL
#define DXGI_RESOURCE_PRIORITY_MINIMUM (0x28000000)
#define DXGI_RESOURCE_PRIORITY_LOW (0x50000000)
#define DXGI_RESOURCE_PRIORITY_NORMAL (0x78000000)
#define DXGI_RESOURCE_PRIORITY_HIGH (0xa0000000)
#define DXGI_RESOURCE_PRIORITY_MAXIMUM (0xc8000000)
#endif

#ifndef DXGI_CPU_ACCESS_NONE
#define DXGI_CPU_ACCESS_NONE (0)
#define DXGI_CPU_ACCESS_DYNAMIC (1)
#define DXGI_CPU_ACCESS_READ_WRITE (2)
#define DXGI_CPU_ACCESS_SCRATCH (3)
#define DXGI_CPU_ACCESS_FIELD (0xf)
#endif

0 comments on commit 6b77920

Please sign in to comment.