From 7824b6348e956d9310192515f8fce22c9f14d40e Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 16 Jan 2018 19:17:25 +0000 Subject: Rename flag to make usage clearer The CXFA_FFWidget::DrawBorderWithFlags method only takes one flag to force rounded drawing. This CL renames the int32_t flags to a simple bool to make the usage clear. Change-Id: I4fb552dc77ce76e35225b15d15f2edbb7f5dcf01 Reviewed-on: https://pdfium-review.googlesource.com/23010 Reviewed-by: Ryan Harrison Commit-Queue: dsinclair --- xfa/fxfa/cxfa_ffwidget.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'xfa/fxfa/cxfa_ffwidget.h') diff --git a/xfa/fxfa/cxfa_ffwidget.h b/xfa/fxfa/cxfa_ffwidget.h index 7c21903203..8ec92ef93f 100644 --- a/xfa/fxfa/cxfa_ffwidget.h +++ b/xfa/fxfa/cxfa_ffwidget.h @@ -71,9 +71,6 @@ void XFA_RectWithoutMargin(CFX_RectF& rt, CXFA_FFWidget* XFA_GetWidgetFromLayoutItem(CXFA_LayoutItem* pLayoutItem); bool XFA_IsCreateWidget(XFA_Element iType); -#define XFA_DRAWBOX_ForceRound 1 -#define XFA_DRAWBOX_Lowered3D 2 - class CXFA_CalcData { public: CXFA_CalcData(); @@ -172,11 +169,11 @@ class CXFA_FFWidget : public CXFA_ContentLayoutItem { CXFA_Box* box, const CFX_RectF& rtBorder, const CFX_Matrix& matrix); - void DrawBorderWithFlags(CXFA_Graphics* pGS, - CXFA_Box* box, - const CFX_RectF& rtBorder, - const CFX_Matrix& matrix, - uint32_t dwFlags); + void DrawBorderWithFlag(CXFA_Graphics* pGS, + CXFA_Box* box, + const CFX_RectF& rtBorder, + const CFX_Matrix& matrix, + bool forceRound); CFX_RectF GetRectWithoutRotate(); bool IsMatchVisibleStatus(uint32_t dwStatus); -- cgit v1.2.3