summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2015-07-02 14:40:08 -0700
committerNico Weber <thakis@chromium.org>2015-07-02 14:40:08 -0700
commitcc2323f0d0d626edac4a426097eb38b53ba54848 (patch)
tree1f409ac45b50bf5685ea7d79ae76530f9cedf461
parent0b0f2130e403aaa558a04ffa664e6f4f0f38d1b1 (diff)
downloadpdfium-chromium/2452.tar.xz
BUG=504699 R=raymes@chromium.org, thakis@chromium.org Review URL: https://codereview.chromium.org/1213433005.
-rw-r--r--core/src/fxge/win32/fx_win32_device.cpp2
-rw-r--r--core/src/fxge/win32/fx_win32_gdipext.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/src/fxge/win32/fx_win32_device.cpp b/core/src/fxge/win32/fx_win32_device.cpp
index f9da1cc706..899adf5b7c 100644
--- a/core/src/fxge/win32/fx_win32_device.cpp
+++ b/core/src/fxge/win32/fx_win32_device.cpp
@@ -792,7 +792,7 @@ FX_BOOL CGdiDeviceDriver::DrawPath(const CFX_PathData* pPathData,
return FALSE;
}
if (pPlatform->m_GdiplusExt.IsAvailable()) {
- if (bDrawAlpha || ((m_DeviceClass != FXDC_PRINTER && !(fill_mode & FXFILL_FULLCOVER)) || pGraphState && pGraphState->m_DashCount)) {
+ if (bDrawAlpha || ((m_DeviceClass != FXDC_PRINTER && !(fill_mode & FXFILL_FULLCOVER)) || (pGraphState && pGraphState->m_DashCount))) {
if ( !((NULL == pMatrix || _MatrixNoScaled(pMatrix)) &&
pGraphState && pGraphState->m_LineWidth == 1.f &&
(pPathData->GetPointCount() == 5 || pPathData->GetPointCount() == 4) &&
diff --git a/core/src/fxge/win32/fx_win32_gdipext.cpp b/core/src/fxge/win32/fx_win32_gdipext.cpp
index 072f4082d6..8fef914cd8 100644
--- a/core/src/fxge/win32/fx_win32_gdipext.cpp
+++ b/core/src/fxge/win32/fx_win32_gdipext.cpp
@@ -936,7 +936,7 @@ BOOL CGdiplusExt::DrawPath(HDC hDC, const CFX_PathData* pPathData,
if (!bSmooth && (fill_mode & 3)) {
bSmooth = TRUE;
}
- if (bSmooth || pGraphState && pGraphState->m_LineWidth > 2) {
+ if (bSmooth || (pGraphState && pGraphState->m_LineWidth > 2)) {
CallFunc(GdipSetSmoothingMode)(pGraphics, SmoothingModeAntiAlias);
}
}