Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04104665 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change I911458a0 into eclair

* changes:
  Fix x offset for boxed textures
parents a47a1e77 911458a0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -405,7 +405,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;
    }