From b6254e82cfb0fb2c0c3d02f6f40c1163017439a8 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 1 Dec 2017 19:50:51 +0000 Subject: Rename CFX_FloatRect::Scale() to ScaleFromCenterPoint(). Change-Id: I6baab14c989e8ae692ed1c846b135af95c09ce37 Reviewed-on: https://pdfium-review.googlesource.com/20210 Reviewed-by: Ryan Harrison Commit-Queue: Ryan Harrison --- fpdfsdk/pwl/cpwl_appstream.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'fpdfsdk/pwl') diff --git a/fpdfsdk/pwl/cpwl_appstream.cpp b/fpdfsdk/pwl/cpwl_appstream.cpp index 27fa09bc31..203a634bfa 100644 --- a/fpdfsdk/pwl/cpwl_appstream.cpp +++ b/fpdfsdk/pwl/cpwl_appstream.cpp @@ -514,18 +514,18 @@ ByteString GetCheckBoxAppStream(const CFX_FloatRect& rcBBox, case CheckStyle::kCheck: return GetAppStream_Check(rcCenter, crText); case CheckStyle::kCircle: - rcCenter.Scale(2.0f / 3.0f); + rcCenter.ScaleFromCenterPoint(2.0f / 3.0f); return GetAppStream_Circle(rcCenter, crText); case CheckStyle::kCross: return GetAppStream_Cross(rcCenter, crText); case CheckStyle::kDiamond: - rcCenter.Scale(2.0f / 3.0f); + rcCenter.ScaleFromCenterPoint(2.0f / 3.0f); return GetAppStream_Diamond(rcCenter, crText); case CheckStyle::kSquare: - rcCenter.Scale(2.0f / 3.0f); + rcCenter.ScaleFromCenterPoint(2.0f / 3.0f); return GetAppStream_Square(rcCenter, crText); case CheckStyle::kStar: - rcCenter.Scale(2.0f / 3.0f); + rcCenter.ScaleFromCenterPoint(2.0f / 3.0f); return GetAppStream_Star(rcCenter, crText); } } @@ -539,18 +539,18 @@ ByteString GetRadioButtonAppStream(const CFX_FloatRect& rcBBox, case CheckStyle::kCheck: return GetAppStream_Check(rcCenter, crText); case CheckStyle::kCircle: - rcCenter.Scale(1.0f / 2.0f); + rcCenter.ScaleFromCenterPoint(1.0f / 2.0f); return GetAppStream_Circle(rcCenter, crText); case CheckStyle::kCross: return GetAppStream_Cross(rcCenter, crText); case CheckStyle::kDiamond: - rcCenter.Scale(2.0f / 3.0f); + rcCenter.ScaleFromCenterPoint(2.0f / 3.0f); return GetAppStream_Diamond(rcCenter, crText); case CheckStyle::kSquare: - rcCenter.Scale(2.0f / 3.0f); + rcCenter.ScaleFromCenterPoint(2.0f / 3.0f); return GetAppStream_Square(rcCenter, crText); case CheckStyle::kStar: - rcCenter.Scale(2.0f / 3.0f); + rcCenter.ScaleFromCenterPoint(2.0f / 3.0f); return GetAppStream_Star(rcCenter, crText); } } -- cgit v1.2.3