am 04104665: Merge change I911458a0 into eclair
Merge commit '04104665271248719cb3659e42938fa4bec0261e' into eclair-mr2 * commit '04104665271248719cb3659e42938fa4bec0261e': Fix x offset for boxed textures
This commit is contained in:
@@ -405,7 +405,7 @@ RsAllocation rsi_AllocationCreateFromBitmapBoxed(Context *rsc, uint32_t w, uint3
|
|||||||
const uint8_t * src = static_cast<const uint8_t *>(data);
|
const uint8_t * src = static_cast<const uint8_t *>(data);
|
||||||
for (uint32_t y = 0; y < h; y++) {
|
for (uint32_t y = 0; y < h; y++) {
|
||||||
uint8_t * ydst = &tmp[(y + ((h2 - h) >> 1)) * w2 * bpp];
|
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;
|
src += w * bpp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user