From 86224fc1f74a27c3448961c91e10d4e3feb427e4 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 16 Aug 2017 19:35:12 -0700 Subject: Remove default argument for CXFA_Graphics::SetLineWidth(). Change-Id: I6ea062bf5def0bc5fea7c52323198209dcf4c3e9 Reviewed-on: https://pdfium-review.googlesource.com/11110 Commit-Queue: dsinclair Reviewed-by: dsinclair --- xfa/fxgraphics/cxfa_graphics.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'xfa/fxgraphics/cxfa_graphics.cpp') diff --git a/xfa/fxgraphics/cxfa_graphics.cpp b/xfa/fxgraphics/cxfa_graphics.cpp index 981c288b46..4975a83251 100644 --- a/xfa/fxgraphics/cxfa_graphics.cpp +++ b/xfa/fxgraphics/cxfa_graphics.cpp @@ -158,11 +158,14 @@ void CXFA_Graphics::SetLineDash(FX_DashStyle dashStyle) { RenderDeviceSetLineDash(dashStyle); } -void CXFA_Graphics::SetLineWidth(float lineWidth, bool isActOnDash) { - if (m_type == FX_CONTEXT_Device && m_renderDevice) { +void CXFA_Graphics::SetLineWidth(float lineWidth) { + if (m_type == FX_CONTEXT_Device && m_renderDevice) m_info.graphState.m_LineWidth = lineWidth; - m_info.isActOnDash = isActOnDash; - } +} + +void CXFA_Graphics::EnableActOnDash() { + if (m_type == FX_CONTEXT_Device && m_renderDevice) + m_info.isActOnDash = true; } void CXFA_Graphics::SetStrokeColor(const CXFA_Color& color) { -- cgit v1.2.3