summaryrefslogtreecommitdiff
path: root/core/src/fxge
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2015-08-16 21:17:02 -0700
committerNico Weber <thakis@chromium.org>2015-08-16 21:17:02 -0700
commit38665a257c04d7f5300da83876650702a01eb397 (patch)
tree0efbe93f730d351ab3f4a874fe0e8d004e19f56c /core/src/fxge
parent271f32210dd69e30fb645814762a7dcb9d0f1e05 (diff)
downloadpdfium-38665a257c04d7f5300da83876650702a01eb397.tar.xz
Fix -Wunused-function warnings on Windows.
BUG=505316 R=thestig@chromium.org Review URL: https://codereview.chromium.org/1293033002 .
Diffstat (limited to 'core/src/fxge')
-rw-r--r--core/src/fxge/win32/fx_win32_gdipext.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/core/src/fxge/win32/fx_win32_gdipext.cpp b/core/src/fxge/win32/fx_win32_gdipext.cpp
index ce65a26301..4beef9a177 100644
--- a/core/src/fxge/win32/fx_win32_gdipext.cpp
+++ b/core/src/fxge/win32/fx_win32_gdipext.cpp
@@ -5,27 +5,26 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "../../../include/fxge/fx_ge.h"
+
#if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_DESKTOP_
#include <windows.h>
#include <algorithm>
+
namespace Gdiplus {
using std::min;
using std::max;
} // namespace Gdiplus
+
#include <gdiplus.h>
#include "../../../include/fxge/fx_ge_win32.h"
#include "win32_int.h"
+
using namespace Gdiplus;
using namespace Gdiplus::DllExports;
+
#define GdiFillType2Gdip(fill_type) \
(fill_type == ALTERNATE ? FillModeAlternate : FillModeWinding)
-static CombineMode GdiCombineMode2Gdip(int mode) {
- switch (mode) {
- case RGN_AND:
- return CombineModeIntersect;
- }
- return CombineModeIntersect;
-}
+
enum {
FuncId_GdipCreatePath2,
FuncId_GdipSetPenDashStyle,