summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorAshod Nakashian <ashodnakashian@yahoo.com>2015-11-10 20:47:58 -0500
committerCaolán McNamara <caolanm@redhat.com>2015-11-12 10:55:41 +0000
commit1a494d9a00208eef790400bdbd8b3e5c7fed4886 (patch)
tree9e305bbf11be0aacfa3af942a7c250f423b629a9 /canvas
parentd7801c39826f2f24f7340e1b25809d3bb65d6099 (diff)
Windows header sanitization
Isolation of windows headers using prewin.h and postwin.h headers and making headers dependent on them more self contained. Conversion of TCHAR to WCHAR and LPCTSTR to LPCWSTR etc. and cleanup of unnecessary casts. Change-Id: I7eff5c477d9223a064bfb4d962ff6d61960ee69c Reviewed-on: https://gerrit.libreoffice.org/19901 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/directx/dx_winstuff.hxx21
1 files changed, 2 insertions, 19 deletions
diff --git a/canvas/source/directx/dx_winstuff.hxx b/canvas/source/directx/dx_winstuff.hxx
index 478acaf61435..0d629b431d76 100644
--- a/canvas/source/directx/dx_winstuff.hxx
+++ b/canvas/source/directx/dx_winstuff.hxx
@@ -25,15 +25,9 @@
#include <basegfx/numeric/ftools.hxx>
-#if defined _MSC_VER
-#pragma warning(push,1)
-#endif
-#ifndef _WINDOWS_
#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
-
-#endif
+#include "prewin.h"
// Enabling Direct3D Debug Information Further more, with registry key
// \\HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Direct3D\D3D9Debugging\\EnableCreationStack
@@ -43,18 +37,11 @@
# define D3D_DEBUG_INFO
#endif
-
-#define GradientStyle_RECT win32GradientStyle_RECT
-#undef WB_LEFT
-#undef WB_RIGHT
-
#include <d3d9.h>
typedef IDirect3DSurface9 surface_type;
-#undef DrawText
-
#ifndef max
#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif
@@ -166,12 +153,8 @@ namespace dxcanvas
}
}
-#if defined _MSC_VER
-#pragma warning(pop)
-#endif
-#undef DELETE
-#undef GradientStyle_RECT
+#include "postwin.h"
#endif // INCLUDED_CANVAS_SOURCE_DIRECTX_DX_WINSTUFF_HXX