summaryrefslogtreecommitdiff
path: root/fpdfsdk/pwl
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-12-01 19:50:51 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-01 19:50:51 +0000
commitb6254e82cfb0fb2c0c3d02f6f40c1163017439a8 (patch)
treeed379d74d9abb8b71e53b395e6098733cfa68464 /fpdfsdk/pwl
parent789a42bf019b80f7490b785dbed548b578414afe (diff)
downloadpdfium-b6254e82cfb0fb2c0c3d02f6f40c1163017439a8.tar.xz
Rename CFX_FloatRect::Scale() to ScaleFromCenterPoint().
Change-Id: I6baab14c989e8ae692ed1c846b135af95c09ce37 Reviewed-on: https://pdfium-review.googlesource.com/20210 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'fpdfsdk/pwl')
-rw-r--r--fpdfsdk/pwl/cpwl_appstream.cpp16
1 files changed, 8 insertions, 8 deletions
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);
}
}