summaryrefslogtreecommitdiffstats
path: root/libs/hwui/OpenGLRenderer.cpp
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2010-12-07 13:29:51 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-12-07 13:29:51 -0800
commit92d502022d695d60575b405d883a9d56e186b597 (patch)
tree8bbf72729ca2e97f87785eb38708d431c5074ce4 /libs/hwui/OpenGLRenderer.cpp
parent65dd62a306b733b4891aa455b2e099d9c15fffa8 (diff)
parent8ab4079ca27e36e5c584495bcd71b573598ac021 (diff)
downloadframeworks_base-92d502022d695d60575b405d883a9d56e186b597.zip
frameworks_base-92d502022d695d60575b405d883a9d56e186b597.tar.gz
frameworks_base-92d502022d695d60575b405d883a9d56e186b597.tar.bz2
Merge "Fix 9patch rendering Bug #3253396"
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
-rw-r--r--libs/hwui/OpenGLRenderer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp
index fc14777..1a89ca0 100644
--- a/libs/hwui/OpenGLRenderer.cpp
+++ b/libs/hwui/OpenGLRenderer.cpp
@@ -954,11 +954,11 @@ void OpenGLRenderer::drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int
mSnapshot->region && mesh->hasEmptyQuads) {
const size_t count = mesh->quads.size();
for (size_t i = 0; i < count; i++) {
- Rect bounds = mesh->quads.itemAt(i);
+ const Rect& bounds = mesh->quads.itemAt(i);
if (pureTranslate) {
const float x = (int) floorf(bounds.left + 0.5f);
const float y = (int) floorf(bounds.top + 0.5f);
- dirtyLayer(x, y, x + bounds.getWidth(), y + bounds.getBottom(),
+ dirtyLayer(x, y, x + bounds.getWidth(), y + bounds.getHeight(),
*mSnapshot->transform);
} else {
dirtyLayer(bounds.left, bounds.top, bounds.right, bounds.bottom,