diff options
author | marha <marha@users.sourceforge.net> | 2009-09-29 15:42:26 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2009-09-29 15:42:26 +0000 |
commit | d50d1454322ac3c1e46cf30df4822d4118034fa9 (patch) | |
tree | cb70124354b6ead69df4f10f839cea9b1f6a76b6 | |
parent | 535f75409cc00bd9ab81cba322eaeaf4c0162c76 (diff) | |
download | vcxsrv-d50d1454322ac3c1e46cf30df4822d4118034fa9.tar.gz vcxsrv-d50d1454322ac3c1e46cf30df4822d4118034fa9.tar.bz2 vcxsrv-d50d1454322ac3c1e46cf30df4822d4118034fa9.zip |
Solved run-time downcast errors in debug version.
-rw-r--r-- | pixman/pixman/pixman-mmx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pixman/pixman/pixman-mmx.c b/pixman/pixman/pixman-mmx.c index 7dcc1dc96..319c5a79d 100644 --- a/pixman/pixman/pixman-mmx.c +++ b/pixman/pixman/pixman-mmx.c @@ -1683,7 +1683,7 @@ mmx_composite_over_8888_0565 (pixman_implementation_t *imp, vdest = pack_565 ( over (vsrc, expand_alpha (vsrc), vdest), vdest, 0); - *dst = UINT64 (vdest); + *dst = UINT64 (vdest) & 0xffff; w--; dst++; @@ -1726,7 +1726,7 @@ mmx_composite_over_8888_0565 (pixman_implementation_t *imp, vdest = pack_565 (over (vsrc, expand_alpha (vsrc), vdest), vdest, 0); - *dst = UINT64 (vdest); + *dst = UINT64 (vdest) & 0xffff; w--; dst++; @@ -1949,7 +1949,7 @@ pixman_fill_mmx (uint32_t *bits, while (w >= 2 && ((unsigned long)d & 3)) { - *(uint16_t *)d = xor; + *(uint16_t *)d = (xor & 0xffff); w -= 2; d += 2; } @@ -2002,7 +2002,7 @@ pixman_fill_mmx (uint32_t *bits, } while (w >= 2) { - *(uint16_t *)d = xor; + *(uint16_t *)d = (xor & 0xffff); w -= 2; d += 2; } |