| commit | 6cd833d831a797ba943dd4b4a2edf04b80a3928a | [log] [tgz] |
|---|---|---|
| author | Marco Nelissen <marcone@google.com> | Wed Oct 28 15:10:56 2009 -0700 |
| committer | Marco Nelissen <marcone@google.com> | Wed Oct 28 15:10:56 2009 -0700 |
| tree | b51698ab4a4b6a1d64a16090013e798f6a05aa16 | |
| parent | 33b6e3b91329080e5cdd0b8fdbcd3e6a906032ae [diff] [blame] |
Fix x offset for boxed textures
diff --git a/rsAllocation.cpp b/rsAllocation.cpp index 8ac9c26..b7d1297 100644 --- a/rsAllocation.cpp +++ b/rsAllocation.cpp
@@ -405,7 +405,7 @@ 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; }