mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 21:53:41 +00:00
sw_engine : type cast compile error
This commit is contained in:
parent
06b4b2c586
commit
b4a0933a10
1 changed files with 2 additions and 2 deletions
|
@ -86,7 +86,7 @@ static bool neonRasterTranslucentRle(SwSurface* surface, const SwRleData* rle, u
|
||||||
auto dst = &surface->buf32[span->y * surface->stride + span->x];
|
auto dst = &surface->buf32[span->y * surface->stride + span->x];
|
||||||
auto ialpha = IA(src);
|
auto ialpha = IA(src);
|
||||||
|
|
||||||
if ((((uint32_t) dst) & 0x7) != 0) {
|
if ((((uintptr_t) dst) & 0x7) != 0) {
|
||||||
//fill not aligned byte
|
//fill not aligned byte
|
||||||
*dst = src + ALPHA_BLEND(*dst, ialpha);
|
*dst = src + ALPHA_BLEND(*dst, ialpha);
|
||||||
vDst = (uint8x8_t*)(dst + 1);
|
vDst = (uint8x8_t*)(dst + 1);
|
||||||
|
@ -133,7 +133,7 @@ static bool neonRasterTranslucentRect(SwSurface* surface, const SwBBox& region,
|
||||||
for (uint32_t y = 0; y < h; ++y) {
|
for (uint32_t y = 0; y < h; ++y) {
|
||||||
auto dst = &buffer[y * surface->stride];
|
auto dst = &buffer[y * surface->stride];
|
||||||
|
|
||||||
if ((((uint32_t) dst) & 0x7) != 0) {
|
if ((((uintptr_t) dst) & 0x7) != 0) {
|
||||||
//fill not aligned byte
|
//fill not aligned byte
|
||||||
*dst = color + ALPHA_BLEND(*dst, ialpha);
|
*dst = color + ALPHA_BLEND(*dst, ialpha);
|
||||||
vDst = (uint8x8_t*) (dst + 1);
|
vDst = (uint8x8_t*) (dst + 1);
|
||||||
|
|
Loading…
Add table
Reference in a new issue