diff --git a/reactos/dll/directx/wine/d3dx9_36/core.c b/reactos/dll/directx/wine/d3dx9_36/core.c index adcd54f921d..d0167a4e1b1 100644 --- a/reactos/dll/directx/wine/d3dx9_36/core.c +++ b/reactos/dll/directx/wine/d3dx9_36/core.c @@ -17,19 +17,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -//#include - -#define COBJMACROS -//#include "windef.h" -//#include "winbase.h" -//#include "wingdi.h" -#include -//#include "wine/unicode.h" - #include "d3dx9_36_private.h" -WINE_DEFAULT_DEBUG_CHANNEL(d3dx); - struct ID3DXBufferImpl { ID3DXBuffer ID3DXBuffer_iface; diff --git a/reactos/dll/directx/wine/d3dx9_36/d3dx9_36_main.c b/reactos/dll/directx/wine/d3dx9_36/d3dx9_36_main.c index 4980f7dd446..e85b2150cc7 100644 --- a/reactos/dll/directx/wine/d3dx9_36/d3dx9_36_main.c +++ b/reactos/dll/directx/wine/d3dx9_36/d3dx9_36_main.c @@ -20,22 +20,7 @@ * */ -#define WIN32_NO_STATUS -#define _INC_WINDOWS -#define COM_NO_WINDOWS_H - -#include -//#include "wine/port.h" -#include - -#include - -#include -#include -#include -//#include "winuser.h" - -#include +#include "d3dx9_36_private.h" /*********************************************************************** * DllMain. diff --git a/reactos/dll/directx/wine/d3dx9_36/d3dx9_36_private.h b/reactos/dll/directx/wine/d3dx9_36/d3dx9_36_private.h index 9a1a6ab40f0..8d26b23bb7c 100644 --- a/reactos/dll/directx/wine/d3dx9_36/d3dx9_36_private.h +++ b/reactos/dll/directx/wine/d3dx9_36/d3dx9_36_private.h @@ -22,13 +22,20 @@ #ifndef __WINE_D3DX9_36_PRIVATE_H #define __WINE_D3DX9_36_PRIVATE_H +#include +#include + #define WIN32_NO_STATUS #define _INC_WINDOWS #define COM_NO_WINDOWS_H #include +#include + #define COBJMACROS +#define NONAMELESSUNION +#define NONAMELESSSTRUCT #include #include #include @@ -36,6 +43,11 @@ #include #include +#include + +#include +WINE_DEFAULT_DEBUG_CHANNEL(d3dx); + #define ARRAY_SIZE(array) (sizeof(array)/sizeof(*array)) struct vec4 diff --git a/reactos/dll/directx/wine/d3dx9_36/effect.c b/reactos/dll/directx/wine/d3dx9_36/effect.c index 465d96a44b6..eaaaa16a15c 100644 --- a/reactos/dll/directx/wine/d3dx9_36/effect.c +++ b/reactos/dll/directx/wine/d3dx9_36/effect.c @@ -17,22 +17,12 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include "config.h" -#include "wine/port.h" -#define NONAMELESSUNION -#include "wine/debug.h" -#include "wine/unicode.h" - -#include "windef.h" -#include "wingdi.h" #include "d3dx9_36_private.h" /* Constants for special INT/FLOAT conversation */ #define INT_FLOAT_MULTI 255.0f #define INT_FLOAT_MULTI_INVERSE (1/INT_FLOAT_MULTI) -WINE_DEFAULT_DEBUG_CHANNEL(d3dx); - enum STATE_CLASS { SC_LIGHTENABLE, diff --git a/reactos/dll/directx/wine/d3dx9_36/font.c b/reactos/dll/directx/wine/d3dx9_36/font.c index bfe82c697ea..c3f4c42ca1c 100644 --- a/reactos/dll/directx/wine/d3dx9_36/font.c +++ b/reactos/dll/directx/wine/d3dx9_36/font.c @@ -17,15 +17,8 @@ * */ -#include -//#include "wine/port.h" - -#include -#include #include "d3dx9_36_private.h" -WINE_DEFAULT_DEBUG_CHANNEL(d3dx); - struct d3dx_font { ID3DXFont ID3DXFont_iface; diff --git a/reactos/dll/directx/wine/d3dx9_36/line.c b/reactos/dll/directx/wine/d3dx9_36/line.c index a9f53a79a50..cac954e71f2 100644 --- a/reactos/dll/directx/wine/d3dx9_36/line.c +++ b/reactos/dll/directx/wine/d3dx9_36/line.c @@ -17,11 +17,8 @@ * */ -#include "wine/debug.h" #include "d3dx9_36_private.h" -WINE_DEFAULT_DEBUG_CHANNEL(d3dx); - typedef struct ID3DXLineImpl { ID3DXLine ID3DXLine_iface; LONG ref; diff --git a/reactos/dll/directx/wine/d3dx9_36/math.c b/reactos/dll/directx/wine/d3dx9_36/math.c index eebba94afc9..e168062eb86 100644 --- a/reactos/dll/directx/wine/d3dx9_36/math.c +++ b/reactos/dll/directx/wine/d3dx9_36/math.c @@ -22,19 +22,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#define NONAMELESSUNION - -#include -#include "wine/port.h" - -//#include "windef.h" -//#include "wingdi.h" #include "d3dx9_36_private.h" -#include - -WINE_DEFAULT_DEBUG_CHANNEL(d3dx); - #ifdef _MSC_VER #define copysignf(x, y) ((x) < 0.0f ? -fabsf(y) : fabsf(y)) #endif diff --git a/reactos/dll/directx/wine/d3dx9_36/mesh.c b/reactos/dll/directx/wine/d3dx9_36/mesh.c index 779d2e5819e..ba9755284a0 100644 --- a/reactos/dll/directx/wine/d3dx9_36/mesh.c +++ b/reactos/dll/directx/wine/d3dx9_36/mesh.c @@ -24,37 +24,21 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#define WIN32_NO_STATUS -#define _INC_WINDOWS -#define COM_NO_WINDOWS_H +#include "d3dx9_36_private.h" -#include -#include - -#define COBJMACROS -#define NONAMELESSUNION -#include #include #ifdef HAVE_FLOAT_H # include #endif -#include -#include -#include -#include + #undef MAKE_DDHRESULT #include "dxfile.h" #include "rmxfguid.h" #include "rmxftmpl.h" -#include "wine/debug.h" -#include "wine/unicode.h" #include "wine/list.h" -#include "d3dx9_36_private.h" #define fmax(a, b) ((a) > (b) ? (a) : (b)) -WINE_DEFAULT_DEBUG_CHANNEL(d3dx); - typedef struct ID3DXMeshImpl { ID3DXMesh ID3DXMesh_iface; diff --git a/reactos/dll/directx/wine/d3dx9_36/render.c b/reactos/dll/directx/wine/d3dx9_36/render.c index 9a28e6394c0..00cece9f948 100644 --- a/reactos/dll/directx/wine/d3dx9_36/render.c +++ b/reactos/dll/directx/wine/d3dx9_36/render.c @@ -17,11 +17,8 @@ * */ -#include "wine/debug.h" #include "d3dx9_36_private.h" -WINE_DEFAULT_DEBUG_CHANNEL(d3dx); - struct device_state { DWORD num_render_targets; diff --git a/reactos/dll/directx/wine/d3dx9_36/shader.c b/reactos/dll/directx/wine/d3dx9_36/shader.c index ef2d3cd2dd9..1ef31590927 100644 --- a/reactos/dll/directx/wine/d3dx9_36/shader.c +++ b/reactos/dll/directx/wine/d3dx9_36/shader.c @@ -18,19 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include -//#include "wine/port.h" -#define NONAMELESSUNION -#define NONAMELESSSTRUCT -#include -//#include "wine/unicode.h" -//#include "windef.h" -//#include "wingdi.h" -//#include "d3dx9.h" -#include "d3dcompiler.h" #include "d3dx9_36_private.h" - -WINE_DEFAULT_DEBUG_CHANNEL(d3dx); +#include "d3dcompiler.h" /* This function is not declared in the SDK headers yet */ HRESULT WINAPI D3DAssemble(LPCVOID data, SIZE_T datasize, LPCSTR filename, diff --git a/reactos/dll/directx/wine/d3dx9_36/skin.c b/reactos/dll/directx/wine/d3dx9_36/skin.c index 85c4d64a63e..3ac5799bd0f 100644 --- a/reactos/dll/directx/wine/d3dx9_36/skin.c +++ b/reactos/dll/directx/wine/d3dx9_36/skin.c @@ -18,11 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include "wine/debug.h" #include "d3dx9_36_private.h" -WINE_DEFAULT_DEBUG_CHANNEL(d3dx); - struct bone { char *name; diff --git a/reactos/dll/directx/wine/d3dx9_36/sprite.c b/reactos/dll/directx/wine/d3dx9_36/sprite.c index 6465633798b..f320eaffb5f 100644 --- a/reactos/dll/directx/wine/d3dx9_36/sprite.c +++ b/reactos/dll/directx/wine/d3dx9_36/sprite.c @@ -17,11 +17,8 @@ * */ -#include #include "d3dx9_36_private.h" -WINE_DEFAULT_DEBUG_CHANNEL(d3dx); - /* the combination of all possible D3DXSPRITE flags */ #define D3DXSPRITE_FLAGLIMIT 511 diff --git a/reactos/dll/directx/wine/d3dx9_36/surface.c b/reactos/dll/directx/wine/d3dx9_36/surface.c index a3ba192e4e6..7455d190a53 100644 --- a/reactos/dll/directx/wine/d3dx9_36/surface.c +++ b/reactos/dll/directx/wine/d3dx9_36/surface.c @@ -18,17 +18,11 @@ * */ -#include -//#include "wine/unicode.h" #include "d3dx9_36_private.h" -#include #include #include -WINE_DEFAULT_DEBUG_CHANNEL(d3dx); - - /* Wine-specific WIC GUIDs */ DEFINE_GUID(GUID_WineContainerFormatTga, 0x0c44fda1,0xa5c5,0x4298,0x96,0x85,0x47,0x3f,0xc1,0x7c,0xd3,0x22); diff --git a/reactos/dll/directx/wine/d3dx9_36/texture.c b/reactos/dll/directx/wine/d3dx9_36/texture.c index 0b0b106a4d8..bc3daf6bc1d 100644 --- a/reactos/dll/directx/wine/d3dx9_36/texture.c +++ b/reactos/dll/directx/wine/d3dx9_36/texture.c @@ -19,11 +19,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include #include "d3dx9_36_private.h" -WINE_DEFAULT_DEBUG_CHANNEL(d3dx); - /* Returns TRUE if num is a power of 2, FALSE if not, or if 0 */ static BOOL is_pow2(UINT num) { diff --git a/reactos/dll/directx/wine/d3dx9_36/util.c b/reactos/dll/directx/wine/d3dx9_36/util.c index a97161425aa..783122a09a5 100644 --- a/reactos/dll/directx/wine/d3dx9_36/util.c +++ b/reactos/dll/directx/wine/d3dx9_36/util.c @@ -17,11 +17,8 @@ * */ -#include #include "d3dx9_36_private.h" -WINE_DEFAULT_DEBUG_CHANNEL(d3dx); - static void la_from_rgba(const struct vec4 *rgba, struct vec4 *la) { la->x = rgba->x * 0.2125f + rgba->y * 0.7154f + rgba->z * 0.0721f; diff --git a/reactos/dll/directx/wine/d3dx9_36/volume.c b/reactos/dll/directx/wine/d3dx9_36/volume.c index 6ba758feca3..d409e29775c 100644 --- a/reactos/dll/directx/wine/d3dx9_36/volume.c +++ b/reactos/dll/directx/wine/d3dx9_36/volume.c @@ -16,11 +16,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include "wine/debug.h" #include "d3dx9_36_private.h" -WINE_DEFAULT_DEBUG_CHANNEL(d3dx); - HRESULT WINAPI D3DXLoadVolumeFromFileA(IDirect3DVolume9 *dst_volume, const PALETTEENTRY *dst_palette, const D3DBOX *dst_box, diff --git a/reactos/dll/directx/wine/d3dx9_36/xfile.c b/reactos/dll/directx/wine/d3dx9_36/xfile.c index 9c57277f8ad..956f51078ba 100644 --- a/reactos/dll/directx/wine/d3dx9_36/xfile.c +++ b/reactos/dll/directx/wine/d3dx9_36/xfile.c @@ -17,15 +17,12 @@ * */ -#include "wine/debug.h" +#include "d3dx9_36_private.h" -#include "d3dx9.h" #include "d3dx9xof.h" #undef MAKE_DDHRESULT #include "dxfile.h" -WINE_DEFAULT_DEBUG_CHANNEL(d3dx); - static HRESULT error_dxfile_to_d3dxfile(HRESULT error) { switch (error)