From 13324ebe2cc0f222228e00d84ceabd79d695c0fa Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 9 Jun 2017 11:31:14 +1000 Subject: Backport: Use min and max from std instead of own version from platform. Backport of changeset 6297:4bf96081f6e6. --- src/LineMarker.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/LineMarker.cxx') diff --git a/src/LineMarker.cxx b/src/LineMarker.cxx index d80a3c78c..5f8243ff8 100644 --- a/src/LineMarker.cxx +++ b/src/LineMarker.cxx @@ -11,6 +11,7 @@ #include #include #include +#include #include #include "Platform.h" @@ -117,7 +118,7 @@ void LineMarker::Draw(Surface *surface, PRectangle &rcWhole, Font &fontForCharac PRectangle rc = rcWhole; rc.top++; rc.bottom--; - int minDim = Platform::Minimum(static_cast(rc.Width()), static_cast(rc.Height())); + int minDim = std::min(static_cast(rc.Width()), static_cast(rc.Height())); minDim--; // Ensure does not go beyond edge int centreX = static_cast(floor((rc.right + rc.left) / 2.0)); const int centreY = static_cast(floor((rc.bottom + rc.top) / 2.0)); -- cgit v1.2.3