diff options
| author | Romain Guy <romainguy@google.com> | 2010-12-07 13:29:51 -0800 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-12-07 13:29:51 -0800 |
| commit | 92d502022d695d60575b405d883a9d56e186b597 (patch) | |
| tree | 8bbf72729ca2e97f87785eb38708d431c5074ce4 /libs/hwui/OpenGLRenderer.cpp | |
| parent | 65dd62a306b733b4891aa455b2e099d9c15fffa8 (diff) | |
| parent | 8ab4079ca27e36e5c584495bcd71b573598ac021 (diff) | |
| download | frameworks_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.cpp | 4 |
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, |
