From a3311ed7a9ddd7ecb066f4731ce4bc3bd3ffd939 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Wed, 19 Jan 2011 12:00:08 -0800 Subject: [PATCH] Fix the fix for 9patches. Change-Id: I66dca835d9d0e9766d887746c3265e4b13ae688b --- libs/hwui/Patch.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libs/hwui/Patch.cpp b/libs/hwui/Patch.cpp index 999e4eacaba22..11eb953907caa 100644 --- a/libs/hwui/Patch.cpp +++ b/libs/hwui/Patch.cpp @@ -167,10 +167,6 @@ void Patch::updateVertices(const float bitmapWidth, const float bitmapHeight, float v2 = fmax(0.0f, stepY - 0.5f) / bitmapHeight; if (stepY > 0.0f) { - if (i == mYCount - 1 && mYDivs[i] == bitmapHeight) { - y2 = bottom - top; - v2 = 1.0f; - } generateRow(vertex, y1, y2, v1, v2, stretchX, right - left, bitmapWidth, quadCount); } @@ -222,10 +218,6 @@ void Patch::generateRow(TextureVertex*& vertex, float y1, float y2, float v1, fl float u2 = fmax(0.0f, stepX - 0.5f) / bitmapWidth; if (stepX > 0.0f) { - if (i == mXCount - 1 && mXDivs[i] == bitmapWidth) { - x2 = bitmapWidth; - u2 = 1.0f; - } generateQuad(vertex, x1, y1, x2, y2, u1, v1, u2, v2, quadCount); }