summaryrefslogtreecommitdiff
path: root/libs/hwui/Patch.cpp
diff options
context:
space:
mode:
author Chris Craik <ccraik@google.com> 2015-07-08 03:00:28 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2015-07-08 03:00:28 +0000
commit41e4d8b3ed044ed724bc340b77d3f9ca60105407 (patch)
tree36084d9b4f9080f972b44d40621ab35659634f84 /libs/hwui/Patch.cpp
parentfb770e48993e1c72603e3a8fe965088e31fdd8e2 (diff)
parent0c218e43b8126eaffb38aa24af8e46e22835c3cb (diff)
am 0c218e43: am 9ca926ad: am fdb87b76: am 127b478a: Merge "Remove all usage of fmin and fmax" into mnc-dev
* commit '0c218e43b8126eaffb38aa24af8e46e22835c3cb': Remove all usage of fmin and fmax
Diffstat (limited to 'libs/hwui/Patch.cpp')
-rw-r--r--libs/hwui/Patch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/Patch.cpp b/libs/hwui/Patch.cpp
index f4dd943c7cd2..6a7dfb3890d3 100644
--- a/libs/hwui/Patch.cpp
+++ b/libs/hwui/Patch.cpp
@@ -119,7 +119,7 @@ Patch::Patch(const float bitmapWidth, const float bitmapHeight,
}
float vOffset = y1 == y2 ? 0.0f : 0.5 - (0.5 * segment / (y2 - y1));
- float v2 = fmax(0.0f, stepY - vOffset) / bitmapHeight;
+ float v2 = std::max(0.0f, stepY - vOffset) / bitmapHeight;
v1 += vOffset / bitmapHeight;
if (stepY > 0.0f) {
@@ -167,7 +167,7 @@ void Patch::generateRow(const int32_t* xDivs, uint32_t xCount, TextureVertex*& v
}
float uOffset = x1 == x2 ? 0.0f : 0.5 - (0.5 * segment / (x2 - x1));
- float u2 = fmax(0.0f, stepX - uOffset) / bitmapWidth;
+ float u2 = std::max(0.0f, stepX - uOffset) / bitmapWidth;
u1 += uOffset / bitmapWidth;
if (stepX > 0.0f) {