diff options
| author | 2015-07-08 02:46:05 +0000 | |
|---|---|---|
| committer | 2015-07-08 02:46:05 +0000 | |
| commit | 0c218e43b8126eaffb38aa24af8e46e22835c3cb (patch) | |
| tree | 8763d395c039dca64cc20c10272a2ceba327a909 /libs/hwui/FontRenderer.cpp | |
| parent | 817820cb488f6bb04418ddc8fefb6164a9eeef69 (diff) | |
| parent | 9ca926adbb5c3503300bdd52266daf503e14113a (diff) | |
am 9ca926ad: am fdb87b76: am 127b478a: Merge "Remove all usage of fmin and fmax" into mnc-dev
* commit '9ca926adbb5c3503300bdd52266daf503e14113a':
  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()) {  |