From 71ba5883dd00145b2256935635492cbcc8d94bac Mon Sep 17 00:00:00 2001 From: tsepez Date: Fri, 28 Oct 2016 09:35:49 -0700 Subject: Fix more FX_BOOL / int noise in core/fpdfsdk Review-Url: https://codereview.chromium.org/2454263002 --- core/fxge/win32/fx_win32_device.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/fxge/win32/fx_win32_device.cpp') 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; -- cgit v1.2.3