[D3DX9_36]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 21 Dec 2013 16:50:22 +0000 (16:50 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 21 Dec 2013 16:50:22 +0000 (16:50 +0000)
* Move some inclusions to the main header.
* Set the default debugging channel globally through the main header.
* Remove inclusions and definitions that already exist in the main header.
CORE-7716

svn path=/trunk/; revision=61325

17 files changed:
reactos/dll/directx/wine/d3dx9_36/core.c
reactos/dll/directx/wine/d3dx9_36/d3dx9_36_main.c
reactos/dll/directx/wine/d3dx9_36/d3dx9_36_private.h
reactos/dll/directx/wine/d3dx9_36/effect.c
reactos/dll/directx/wine/d3dx9_36/font.c
reactos/dll/directx/wine/d3dx9_36/line.c
reactos/dll/directx/wine/d3dx9_36/math.c
reactos/dll/directx/wine/d3dx9_36/mesh.c
reactos/dll/directx/wine/d3dx9_36/render.c
reactos/dll/directx/wine/d3dx9_36/shader.c
reactos/dll/directx/wine/d3dx9_36/skin.c
reactos/dll/directx/wine/d3dx9_36/sprite.c
reactos/dll/directx/wine/d3dx9_36/surface.c
reactos/dll/directx/wine/d3dx9_36/texture.c
reactos/dll/directx/wine/d3dx9_36/util.c
reactos/dll/directx/wine/d3dx9_36/volume.c
reactos/dll/directx/wine/d3dx9_36/xfile.c

index adcd54f..d0167a4 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-//#include <stdarg.h>
-
-#define COBJMACROS
-//#include "windef.h"
-//#include "winbase.h"
-//#include "wingdi.h"
-#include <wine/debug.h>
-//#include "wine/unicode.h"
-
 #include "d3dx9_36_private.h"
 
-WINE_DEFAULT_DEBUG_CHANNEL(d3dx);
-
 struct ID3DXBufferImpl
 {
     ID3DXBuffer ID3DXBuffer_iface;
index 4980f7d..e85b215 100644 (file)
  *
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-
-#include <config.h>
-//#include "wine/port.h"
-#include <initguid.h>
-
-#include <stdarg.h>
-
-#include <windef.h>
-#include <winbase.h>
-#include <wingdi.h>
-//#include "winuser.h"
-
-#include <d3dx9.h>
+#include "d3dx9_36_private.h"
 
 /***********************************************************************
  * DllMain.
index 9a1a6ab..8d26b23 100644 (file)
 #ifndef __WINE_D3DX9_36_PRIVATE_H
 #define __WINE_D3DX9_36_PRIVATE_H
 
+#include <config.h>
+#include <wine/port.h>
+
 #define WIN32_NO_STATUS
 #define _INC_WINDOWS
 #define COM_NO_WINDOWS_H
 
 #include <stdarg.h>
 
+#include <initguid.h>
+
 #define COBJMACROS
+#define NONAMELESSUNION
+#define NONAMELESSSTRUCT
 #include <windef.h>
 #include <winbase.h>
 #include <wingdi.h>
 #include <winuser.h>
 #include <d3dx9.h>
 
+#include <wine/unicode.h>
+
+#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(d3dx);
+
 #define ARRAY_SIZE(array) (sizeof(array)/sizeof(*array))
 
 struct vec4
index 465d96a..eaaaa16 100644 (file)
  * 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,
index bfe82c6..c3f4c42 100644 (file)
  *
  */
 
-#include <config.h>
-//#include "wine/port.h"
-
-#include <wine/debug.h>
-#include <wine/unicode.h>
 #include "d3dx9_36_private.h"
 
-WINE_DEFAULT_DEBUG_CHANNEL(d3dx);
-
 struct d3dx_font
 {
     ID3DXFont ID3DXFont_iface;
index a9f53a7..cac954e 100644 (file)
  *
  */
 
-#include "wine/debug.h"
 #include "d3dx9_36_private.h"
 
-WINE_DEFAULT_DEBUG_CHANNEL(d3dx);
-
 typedef struct ID3DXLineImpl {
     ID3DXLine ID3DXLine_iface;
     LONG ref;
index eebba94..e168062 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define NONAMELESSUNION
-
-#include <config.h>
-#include "wine/port.h"
-
-//#include "windef.h"
-//#include "wingdi.h"
 #include "d3dx9_36_private.h"
 
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(d3dx);
-
 #ifdef _MSC_VER
 #define copysignf(x, y) ((x) < 0.0f ? -fabsf(y) : fabsf(y))
 #endif
index 779d2e5..ba97552 100644 (file)
  * 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 <config.h>
-#include <wine/port.h>
+#include "d3dx9_36_private.h"
 
-#define COBJMACROS
-#define NONAMELESSUNION
-#include <stdarg.h>
 #include <assert.h>
 #ifdef HAVE_FLOAT_H
 # include <float.h>
 #endif
-#include <windef.h>
-#include <winbase.h>
-#include <wingdi.h>
-#include <d3dx9.h>
+
 #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;
index 9a28e63..00cece9 100644 (file)
  *
  */
 
-#include "wine/debug.h"
 #include "d3dx9_36_private.h"
 
-WINE_DEFAULT_DEBUG_CHANNEL(d3dx);
-
 struct device_state
 {
     DWORD num_render_targets;
index ef2d3cd..1ef3159 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <config.h>
-//#include "wine/port.h"
-#define NONAMELESSUNION
-#define NONAMELESSSTRUCT
-#include <wine/debug.h>
-//#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,
index 85c4d64..3ac5799 100644 (file)
  * 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;
index 6465633..f320eaf 100644 (file)
  *
  */
 
-#include <wine/debug.h>
 #include "d3dx9_36_private.h"
 
-WINE_DEFAULT_DEBUG_CHANNEL(d3dx);
-
 /* the combination of all possible D3DXSPRITE flags */
 #define D3DXSPRITE_FLAGLIMIT 511
 
index a3ba192..7455d19 100644 (file)
  *
  */
 
-#include <wine/debug.h>
-//#include "wine/unicode.h"
 #include "d3dx9_36_private.h"
 
-#include <initguid.h>
 #include <ole2.h>
 #include <wincodec.h>
 
-WINE_DEFAULT_DEBUG_CHANNEL(d3dx);
-
-
 /* Wine-specific WIC GUIDs */
 DEFINE_GUID(GUID_WineContainerFormatTga, 0x0c44fda1,0xa5c5,0x4298,0x96,0x85,0x47,0x3f,0xc1,0x7c,0xd3,0x22);
 
index 0b0b106..bc3daf6 100644 (file)
  * 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);
-
 /* Returns TRUE if num is a power of 2, FALSE if not, or if 0 */
 static BOOL is_pow2(UINT num)
 {
index a971614..783122a 100644 (file)
  *
  */
 
-#include <wine/debug.h>
 #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;
index 6ba758f..d409e29 100644 (file)
  * 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,
index 9c57277..956f510 100644 (file)
  *
  */
 
-#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)