aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LineMarker.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-06-09 11:31:14 +1000
committerNeil <nyamatongwe@gmail.com>2017-06-09 11:31:14 +1000
commit13324ebe2cc0f222228e00d84ceabd79d695c0fa (patch)
treeb301543b52452f29a28011cf4970246ef1781ffe /src/LineMarker.cxx
parentdbefd4e6e1d808505086b3374106ff26ac2a6452 (diff)
downloadscintilla-mirror-13324ebe2cc0f222228e00d84ceabd79d695c0fa.tar.gz
Backport: Use min and max from std instead of own version from platform.
Backport of changeset 6297:4bf96081f6e6.
Diffstat (limited to 'src/LineMarker.cxx')
-rw-r--r--src/LineMarker.cxx3
1 files changed, 2 insertions, 1 deletions
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 <stdexcept>
#include <vector>
#include <map>
+#include <algorithm>
#include <memory>
#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<int>(rc.Width()), static_cast<int>(rc.Height()));
+ int minDim = std::min(static_cast<int>(rc.Width()), static_cast<int>(rc.Height()));
minDim--; // Ensure does not go beyond edge
int centreX = static_cast<int>(floor((rc.right + rc.left) / 2.0));
const int centreY = static_cast<int>(floor((rc.bottom + rc.top) / 2.0));