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

Commit a89a059e authored by Marco Nelissen's avatar Marco Nelissen Committed by Android Git Automerger
Browse files

am 04104665: Merge change I911458a0 into eclair

Merge commit '04104665' into eclair-mr2

* commit '04104665':
  Fix x offset for boxed textures
parents 18eedbac 04104665
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;
    }