diff options
| author | 2015-07-08 02:09:32 +0000 | |
|---|---|---|
| committer | 2015-07-08 02:09:32 +0000 | |
| commit | fdb87b76733442c7cf36719748966a38a80671a7 (patch) | |
| tree | 952af2b48ea9c5c35f956a6cc07b810826d7d678 /libs/hwui/FontRenderer.cpp | |
| parent | b517be4c8716725cf2e5e37e9497dad5423fa459 (diff) | |
| parent | 127b478ac61eed99894998b38bca82b79b8e56b1 (diff) | |
am 127b478a: Merge "Remove all usage of fmin and fmax" into mnc-dev
* commit '127b478ac61eed99894998b38bca82b79b8e56b1':
Remove all usage of fmin and fmax
Diffstat (limited to 'libs/hwui/FontRenderer.cpp')
| -rw-r--r-- | libs/hwui/FontRenderer.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libs/hwui/FontRenderer.cpp b/libs/hwui/FontRenderer.cpp index 9664f58b1752..35051b7cccea 100644 --- a/libs/hwui/FontRenderer.cpp +++ b/libs/hwui/FontRenderer.cpp @@ -521,10 +521,10 @@ void FontRenderer::appendMeshQuad(float x1, float y1, float u1, float v1, appendMeshQuadNoClip(x1, y1, u1, v1, x2, y2, u2, v2, x3, y3, u3, v3, x4, y4, u4, v4, texture); if (mBounds) { - mBounds->left = fmin(mBounds->left, x1); - mBounds->top = fmin(mBounds->top, y3); - mBounds->right = fmax(mBounds->right, x3); - mBounds->bottom = fmax(mBounds->bottom, y1); + mBounds->left = std::min(mBounds->left, x1); + mBounds->top = std::min(mBounds->top, y3); + mBounds->right = std::max(mBounds->right, x3); + mBounds->bottom = std::max(mBounds->bottom, y1); } if (mCurrentCacheTexture->endOfMesh()) { @@ -539,10 +539,10 @@ void FontRenderer::appendRotatedMeshQuad(float x1, float y1, float u1, float v1, appendMeshQuadNoClip(x1, y1, u1, v1, x2, y2, u2, v2, x3, y3, u3, v3, x4, y4, u4, v4, texture); if (mBounds) { - mBounds->left = fmin(mBounds->left, fmin(x1, fmin(x2, fmin(x3, x4)))); - mBounds->top = fmin(mBounds->top, fmin(y1, fmin(y2, fmin(y3, y4)))); - mBounds->right = fmax(mBounds->right, fmax(x1, fmax(x2, fmax(x3, x4)))); - mBounds->bottom = fmax(mBounds->bottom, fmax(y1, fmax(y2, fmax(y3, y4)))); + mBounds->left = std::min(mBounds->left, std::min(x1, std::min(x2, std::min(x3, x4)))); + mBounds->top = std::min(mBounds->top, std::min(y1, std::min(y2, std::min(y3, y4)))); + mBounds->right = std::max(mBounds->right, std::max(x1, std::max(x2, std::max(x3, x4)))); + mBounds->bottom = std::max(mBounds->bottom, std::max(y1, std::max(y2, std::max(y3, y4)))); } if (mCurrentCacheTexture->endOfMesh()) { |