summaryrefslogtreecommitdiff
path: root/core/fxge/win32
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-10-28 09:35:49 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-28 09:35:49 -0700
commit71ba5883dd00145b2256935635492cbcc8d94bac (patch)
tree5b9a47d819d86ac820b867a333d35080e365f3f4 /core/fxge/win32
parent605c9f71d33540ba99983d89ac79b2ca250fc730 (diff)
downloadpdfium-71ba5883dd00145b2256935635492cbcc8d94bac.tar.xz
Fix more FX_BOOL / int noise in core/fpdfsdk
Review-Url: https://codereview.chromium.org/2454263002
Diffstat (limited to 'core/fxge/win32')
-rw-r--r--core/fxge/win32/fx_win32_device.cpp4
-rw-r--r--core/fxge/win32/fx_win32_gdipext.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/core/fxge/win32/fx_win32_device.cpp b/core/fxge/win32/fx_win32_device.cpp
index 0ef7829549..900828c3fc 100644
--- a/core/fxge/win32/fx_win32_device.cpp
+++ b/core/fxge/win32/fx_win32_device.cpp
@@ -933,7 +933,7 @@ FX_BOOL CGdiDeviceDriver::GDI_StretchBitMask(CFX_DIBitmap* pBitmap1,
}
FX_BOOL CGdiDeviceDriver::GetClipBox(FX_RECT* pRect) {
- return ::GetClipBox(m_hDC, (RECT*)pRect);
+ return !!(::GetClipBox(m_hDC, (RECT*)pRect));
}
void* CGdiDeviceDriver::GetPlatformSurface() const {
@@ -1137,7 +1137,7 @@ FX_BOOL CGdiDeviceDriver::SetClip_PathStroke(
SetPathToDC(m_hDC, pPathData, pMatrix);
WidenPath(m_hDC);
SetPolyFillMode(m_hDC, WINDING);
- FX_BOOL ret = SelectClipPath(m_hDC, RGN_AND);
+ FX_BOOL ret = !!SelectClipPath(m_hDC, RGN_AND);
hPen = (HPEN)SelectObject(m_hDC, hPen);
DeleteObject(hPen);
return ret;
diff --git a/core/fxge/win32/fx_win32_gdipext.cpp b/core/fxge/win32/fx_win32_gdipext.cpp
index 2d19808517..927f0a32e2 100644
--- a/core/fxge/win32/fx_win32_gdipext.cpp
+++ b/core/fxge/win32/fx_win32_gdipext.cpp
@@ -1233,7 +1233,7 @@ FX_BOOL CGdiplusExt::DrawPath(HDC hDC,
}
if (pGraphState && stroke_argb) {
GpPen* pPen = _GdipCreatePen(pGraphState, pObject2Device, stroke_argb,
- fill_mode & FX_STROKE_TEXT_MODE);
+ !!(fill_mode & FX_STROKE_TEXT_MODE));
if (nSubPathes == 1) {
CallFunc(GdipDrawPath)(pGraphics, pPen, pGpPath);
} else {