From 4b1b62e6bdc7a2f5f4b28a5517dca48bc64471ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 4 Jan 2015 16:23:00 -0800 Subject: [PATCH] Fixed MinGW build from Linux. --- examples/common/entry/entry_windows.cpp | 4 ++++ src/renderer_d3d9.h | 10 +++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/examples/common/entry/entry_windows.cpp b/examples/common/entry/entry_windows.cpp index ce278428..1b3f4f2d 100644 --- a/examples/common/entry/entry_windows.cpp +++ b/examples/common/entry/entry_windows.cpp @@ -23,6 +23,10 @@ # define XINPUT_GAMEPAD_GUIDE 0x400 #endif // XINPUT_GAMEPAD_GUIDE +#ifndef XINPUT_DLL_A +# define XINPUT_DLL_A "xinput.dll" +#endif // XINPUT_DLL_A + namespace entry { typedef DWORD (WINAPI* PFN_XINPUT_GET_STATE)(DWORD dwUserIndex, XINPUT_STATE* pState); diff --git a/src/renderer_d3d9.h b/src/renderer_d3d9.h index 1460725c..e20728b6 100644 --- a/src/renderer_d3d9.h +++ b/src/renderer_d3d9.h @@ -88,6 +88,14 @@ namespace bgfx # define D3DFMT_RAWZ ( (D3DFORMAT)BX_MAKEFOURCC('R', 'A', 'W', 'Z') ) # endif // D3DFMT_RAWZ +# ifndef D3DFMT_S8_LOCKABLE +# define D3DFMT_S8_LOCKABLE ( (D3DFORMAT)85) +# endif // D3DFMT_S8_LOCKABLE + +# ifndef D3DFMT_A1 +# define D3DFMT_A1 ( (D3DFORMAT)118) +# endif // D3DFMT_A1 + struct ExtendedFormat { enum Enum @@ -327,7 +335,7 @@ namespace bgfx void preReset(); void postReset(); - + union { IDirect3DBaseTexture9* m_ptr;