summaryrefslogtreecommitdiff
path: root/core/fxge/win32/fx_win32_dwrite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxge/win32/fx_win32_dwrite.cpp')
-rw-r--r--core/fxge/win32/fx_win32_dwrite.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/core/fxge/win32/fx_win32_dwrite.cpp b/core/fxge/win32/fx_win32_dwrite.cpp
index b4bb9b6204..b12e5d7d15 100644
--- a/core/fxge/win32/fx_win32_dwrite.cpp
+++ b/core/fxge/win32/fx_win32_dwrite.cpp
@@ -4,12 +4,10 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#include "core/fxcrt/fx_system.h"
-#include "core/fxge/ge/cfx_cliprgn.h"
-
-#if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_DESKTOP_
#include <dwrite.h>
+#include "core/fxcrt/fx_system.h"
+#include "core/fxge/ge/cfx_cliprgn.h"
#include "core/fxge/win32/dwrite_int.h"
typedef HRESULT(__stdcall* FuncType_DWriteCreateFactory)(
@@ -91,7 +89,7 @@ class CDwFontFileLoader final : public IDWriteFontFileLoader {
class CDwFontContext {
public:
- CDwFontContext(IDWriteFactory* dwriteFactory);
+ explicit CDwFontContext(IDWriteFactory* dwriteFactory);
~CDwFontContext();
HRESULT Initialize();
@@ -446,4 +444,3 @@ STDMETHODIMP CDwGdiTextRenderer::DrawGlyphRun(
text_bbox.top, FXDIB_BLEND_NORMAL, pClipRgn);
return hr;
}
-#endif