From 6826772bca16d91dc738a8f363823d3e51aad82e Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sat, 21 Dec 2013 15:33:19 +0000 Subject: [PATCH] [D3D9] * 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=61323 --- reactos/dll/directx/wine/d3d9/buffer.c | 3 --- reactos/dll/directx/wine/d3d9/d3d9_main.c | 4 ---- reactos/dll/directx/wine/d3d9/d3d9_private.h | 9 ++++++--- reactos/dll/directx/wine/d3d9/device.c | 3 --- reactos/dll/directx/wine/d3d9/directx.c | 3 --- reactos/dll/directx/wine/d3d9/query.c | 3 --- reactos/dll/directx/wine/d3d9/shader.c | 3 --- reactos/dll/directx/wine/d3d9/stateblock.c | 3 --- reactos/dll/directx/wine/d3d9/surface.c | 3 --- reactos/dll/directx/wine/d3d9/swapchain.c | 3 --- reactos/dll/directx/wine/d3d9/texture.c | 3 --- reactos/dll/directx/wine/d3d9/vertexdeclaration.c | 3 --- reactos/dll/directx/wine/d3d9/volume.c | 3 --- 13 files changed, 6 insertions(+), 40 deletions(-) diff --git a/reactos/dll/directx/wine/d3d9/buffer.c b/reactos/dll/directx/wine/d3d9/buffer.c index 0711f9e626e..92691b26de1 100644 --- a/reactos/dll/directx/wine/d3d9/buffer.c +++ b/reactos/dll/directx/wine/d3d9/buffer.c @@ -18,11 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include #include "d3d9_private.h" -WINE_DEFAULT_DEBUG_CHANNEL(d3d9); - static inline struct d3d9_vertexbuffer *impl_from_IDirect3DVertexBuffer9(IDirect3DVertexBuffer9 *iface) { return CONTAINING_RECORD(iface, struct d3d9_vertexbuffer, IDirect3DVertexBuffer9_iface); diff --git a/reactos/dll/directx/wine/d3d9/d3d9_main.c b/reactos/dll/directx/wine/d3d9/d3d9_main.c index d407e4961b8..01d6b216236 100644 --- a/reactos/dll/directx/wine/d3d9/d3d9_main.c +++ b/reactos/dll/directx/wine/d3d9/d3d9_main.c @@ -21,12 +21,8 @@ * */ -#include -#include #include "d3d9_private.h" -WINE_DEFAULT_DEBUG_CHANNEL(d3d9); - static int D3DPERF_event_level = 0; void WINAPI DebugSetMute(void) { diff --git a/reactos/dll/directx/wine/d3d9/d3d9_private.h b/reactos/dll/directx/wine/d3d9/d3d9_private.h index 3bd4f738c24..f32ae4fd0ff 100644 --- a/reactos/dll/directx/wine/d3d9/d3d9_private.h +++ b/reactos/dll/directx/wine/d3d9/d3d9_private.h @@ -23,6 +23,8 @@ #ifndef __WINE_D3D9_PRIVATE_H #define __WINE_D3D9_PRIVATE_H +#include + #define WIN32_NO_STATUS #define _INC_WINDOWS #define COM_NO_WINDOWS_H @@ -36,10 +38,11 @@ #include #include #include -//#include "winuser.h" -#include -//#include "wine/unicode.h" +#include +WINE_DEFAULT_DEBUG_CHANNEL(d3d9); + +#include #include #include diff --git a/reactos/dll/directx/wine/d3d9/device.c b/reactos/dll/directx/wine/d3d9/device.c index 7400a423efd..6bcc65bc03b 100644 --- a/reactos/dll/directx/wine/d3d9/device.c +++ b/reactos/dll/directx/wine/d3d9/device.c @@ -20,11 +20,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include #include "d3d9_private.h" -WINE_DEFAULT_DEBUG_CHANNEL(d3d9); - static void STDMETHODCALLTYPE d3d9_null_wined3d_object_destroyed(void *parent) {} static const struct wined3d_parent_ops d3d9_null_wined3d_parent_ops = diff --git a/reactos/dll/directx/wine/d3d9/directx.c b/reactos/dll/directx/wine/d3d9/directx.c index a21560f1bba..be1917c216c 100644 --- a/reactos/dll/directx/wine/d3d9/directx.c +++ b/reactos/dll/directx/wine/d3d9/directx.c @@ -19,11 +19,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include #include "d3d9_private.h" -WINE_DEFAULT_DEBUG_CHANNEL(d3d9); - static inline struct d3d9 *impl_from_IDirect3D9Ex(IDirect3D9Ex *iface) { return CONTAINING_RECORD(iface, struct d3d9, IDirect3D9Ex_iface); diff --git a/reactos/dll/directx/wine/d3d9/query.c b/reactos/dll/directx/wine/d3d9/query.c index 7e01a69a4cb..87cc54d8ed3 100644 --- a/reactos/dll/directx/wine/d3d9/query.c +++ b/reactos/dll/directx/wine/d3d9/query.c @@ -20,11 +20,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include #include "d3d9_private.h" -WINE_DEFAULT_DEBUG_CHANNEL(d3d9); - static inline struct d3d9_query *impl_from_IDirect3DQuery9(IDirect3DQuery9 *iface) { return CONTAINING_RECORD(iface, struct d3d9_query, IDirect3DQuery9_iface); diff --git a/reactos/dll/directx/wine/d3d9/shader.c b/reactos/dll/directx/wine/d3d9/shader.c index 4e7abed9450..94ec8292523 100644 --- a/reactos/dll/directx/wine/d3d9/shader.c +++ b/reactos/dll/directx/wine/d3d9/shader.c @@ -17,11 +17,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include #include "d3d9_private.h" -WINE_DEFAULT_DEBUG_CHANNEL(d3d9); - static inline struct d3d9_vertexshader *impl_from_IDirect3DVertexShader9(IDirect3DVertexShader9 *iface) { return CONTAINING_RECORD(iface, struct d3d9_vertexshader, IDirect3DVertexShader9_iface); diff --git a/reactos/dll/directx/wine/d3d9/stateblock.c b/reactos/dll/directx/wine/d3d9/stateblock.c index a1e7131155e..9355d9d51e1 100644 --- a/reactos/dll/directx/wine/d3d9/stateblock.c +++ b/reactos/dll/directx/wine/d3d9/stateblock.c @@ -20,11 +20,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include #include "d3d9_private.h" -WINE_DEFAULT_DEBUG_CHANNEL(d3d9); - static inline struct d3d9_stateblock *impl_from_IDirect3DStateBlock9(IDirect3DStateBlock9 *iface) { return CONTAINING_RECORD(iface, struct d3d9_stateblock, IDirect3DStateBlock9_iface); diff --git a/reactos/dll/directx/wine/d3d9/surface.c b/reactos/dll/directx/wine/d3d9/surface.c index 0f9688a22ce..c86d05d093f 100644 --- a/reactos/dll/directx/wine/d3d9/surface.c +++ b/reactos/dll/directx/wine/d3d9/surface.c @@ -19,11 +19,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include #include "d3d9_private.h" -WINE_DEFAULT_DEBUG_CHANNEL(d3d9); - static inline struct d3d9_surface *impl_from_IDirect3DSurface9(IDirect3DSurface9 *iface) { return CONTAINING_RECORD(iface, struct d3d9_surface, IDirect3DSurface9_iface); diff --git a/reactos/dll/directx/wine/d3d9/swapchain.c b/reactos/dll/directx/wine/d3d9/swapchain.c index 57e76ea8c47..c1be78f44b9 100644 --- a/reactos/dll/directx/wine/d3d9/swapchain.c +++ b/reactos/dll/directx/wine/d3d9/swapchain.c @@ -20,11 +20,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include #include "d3d9_private.h" -WINE_DEFAULT_DEBUG_CHANNEL(d3d9); - static inline struct d3d9_swapchain *impl_from_IDirect3DSwapChain9(IDirect3DSwapChain9 *iface) { return CONTAINING_RECORD(iface, struct d3d9_swapchain, IDirect3DSwapChain9_iface); diff --git a/reactos/dll/directx/wine/d3d9/texture.c b/reactos/dll/directx/wine/d3d9/texture.c index ec53ceec94a..74ff5d9261a 100644 --- a/reactos/dll/directx/wine/d3d9/texture.c +++ b/reactos/dll/directx/wine/d3d9/texture.c @@ -18,11 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include #include "d3d9_private.h" -WINE_DEFAULT_DEBUG_CHANNEL(d3d9); - static inline struct d3d9_texture *impl_from_IDirect3DTexture9(IDirect3DTexture9 *iface) { return CONTAINING_RECORD(iface, struct d3d9_texture, IDirect3DBaseTexture9_iface); diff --git a/reactos/dll/directx/wine/d3d9/vertexdeclaration.c b/reactos/dll/directx/wine/d3d9/vertexdeclaration.c index 0eab4632808..a32d0df760d 100644 --- a/reactos/dll/directx/wine/d3d9/vertexdeclaration.c +++ b/reactos/dll/directx/wine/d3d9/vertexdeclaration.c @@ -19,11 +19,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include #include "d3d9_private.h" -WINE_DEFAULT_DEBUG_CHANNEL(d3d9); - static const struct { enum wined3d_format_id format; diff --git a/reactos/dll/directx/wine/d3d9/volume.c b/reactos/dll/directx/wine/d3d9/volume.c index b3d70327230..ef54a56b680 100644 --- a/reactos/dll/directx/wine/d3d9/volume.c +++ b/reactos/dll/directx/wine/d3d9/volume.c @@ -19,11 +19,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include #include "d3d9_private.h" -WINE_DEFAULT_DEBUG_CHANNEL(d3d9); - static inline struct d3d9_volume *impl_from_IDirect3DVolume9(IDirect3DVolume9 *iface) { return CONTAINING_RECORD(iface, struct d3d9_volume, IDirect3DVolume9_iface);