aboutsummaryrefslogtreecommitdiff
path: root/pixman
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-09-29 15:42:26 +0000
committermarha <marha@users.sourceforge.net>2009-09-29 15:42:26 +0000
commitd50d1454322ac3c1e46cf30df4822d4118034fa9 (patch)
treecb70124354b6ead69df4f10f839cea9b1f6a76b6 /pixman
parent535f75409cc00bd9ab81cba322eaeaf4c0162c76 (diff)
downloadvcxsrv-d50d1454322ac3c1e46cf30df4822d4118034fa9.tar.gz
vcxsrv-d50d1454322ac3c1e46cf30df4822d4118034fa9.tar.bz2
vcxsrv-d50d1454322ac3c1e46cf30df4822d4118034fa9.zip
Solved run-time downcast errors in debug version.
Diffstat (limited to 'pixman')
-rw-r--r--pixman/pixman/pixman-mmx.c8
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;
}