xserver: Branch 'master'
Adam Jackson
ajax at kemper.freedesktop.org
Tue Sep 2 12:43:31 PDT 2008
hw/xfree86/xaa/xaaFillPoly.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 613ce0955032fb032de0a3940752828d314f057a
Author: Adam Jackson <ajax at redhat.com>
Date: Tue Sep 2 15:43:15 2008 -0400
Fix strict-aliasing silliness in XAA.
diff --git a/hw/xfree86/xaa/xaaFillPoly.c b/hw/xfree86/xaa/xaaFillPoly.c
index 23c2781..6f11e35 100644
--- a/hw/xfree86/xaa/xaaFillPoly.c
+++ b/hw/xfree86/xaa/xaaFillPoly.c
@@ -131,8 +131,8 @@ XAAIsEasyPolygon(
*bottomY = 0;
origin -= (origin & 0x8000) << 1;
- vertex1 = *((int *) &extents->x1) - origin;
- vertex2 = *((int *) &extents->x2) - origin /* - 0x00010001 */;
+ vertex1 = extents->x1 - origin;
+ vertex2 = extents->x2 - origin /* - 0x00010001 */;
/* I think this was an error in cfb ^ */
if (shape == Convex) {
@@ -714,7 +714,7 @@ XAAFillPolygonStippled(
return;
}
- origin = *((int *)&pDraw->x);
+ origin = pDraw->x;
switch( XAAIsEasyPolygon(ptsIn, count, &pGC->pCompositeClip->extents,
origin, &topPoint, &y, &maxy, shape) ) {
@@ -867,7 +867,7 @@ XAAFillPolygonTiled(
return;
}
- origin = *((int *)&pDraw->x);
+ origin = pDraw->x;
switch( XAAIsEasyPolygon(ptsIn, count, &pGC->pCompositeClip->extents,
origin, &topPoint, &y, &maxy, shape) ) {
More information about the xorg-commit
mailing list