summaryrefslogtreecommitdiffstats
path: root/libs/rs
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2009-10-29 14:47:10 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2009-10-29 14:47:10 -0700
commita6e385cf20a3dd2dc01aca09520845c58187387f (patch)
tree4ec77476776c8441b251db76ea09610a03fef512 /libs/rs
parent53359736ecaa77eaa51bde3b46ed314eeb6f8029 (diff)
parent923f2cf0dc15ac2bafa8013b31a722b85a64176b (diff)
downloadframeworks_base-a6e385cf20a3dd2dc01aca09520845c58187387f.zip
frameworks_base-a6e385cf20a3dd2dc01aca09520845c58187387f.tar.gz
frameworks_base-a6e385cf20a3dd2dc01aca09520845c58187387f.tar.bz2
am 923f2cf0: am a89a059e: am 04104665: Merge change I911458a0 into eclair
Merge commit '923f2cf0dc15ac2bafa8013b31a722b85a64176b' * commit '923f2cf0dc15ac2bafa8013b31a722b85a64176b': Fix x offset for boxed textures
Diffstat (limited to 'libs/rs')
-rw-r--r--libs/rs/rsAllocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/rs/rsAllocation.cpp b/libs/rs/rsAllocation.cpp
index 5e0959a..6770611 100644
--- a/libs/rs/rsAllocation.cpp
+++ b/libs/rs/rsAllocation.cpp
@@ -429,7 +429,7 @@ RsAllocation rsi_AllocationCreateFromBitmapBoxed(Context *rsc, uint32_t w, uint3
const uint8_t * src = static_cast<const uint8_t *>(data);
for (uint32_t y = 0; y < h; y++) {
uint8_t * ydst = &tmp[(y + ((h2 - h) >> 1)) * w2 * bpp];
- memcpy(&ydst[(w2 - w) >> 1], src, w * bpp);
+ memcpy(&ydst[((w2 - w) >> 1) * bpp], src, w * bpp);
src += w * bpp;
}