Fix strict-aliasing silliness in XAA.
This commit is contained in:
parent
b5cdcfa55c
commit
613ce09550
|
@ -131,8 +131,8 @@ XAAIsEasyPolygon(
|
||||||
*bottomY = 0;
|
*bottomY = 0;
|
||||||
|
|
||||||
origin -= (origin & 0x8000) << 1;
|
origin -= (origin & 0x8000) << 1;
|
||||||
vertex1 = *((int *) &extents->x1) - origin;
|
vertex1 = extents->x1 - origin;
|
||||||
vertex2 = *((int *) &extents->x2) - origin /* - 0x00010001 */;
|
vertex2 = extents->x2 - origin /* - 0x00010001 */;
|
||||||
/* I think this was an error in cfb ^ */
|
/* I think this was an error in cfb ^ */
|
||||||
|
|
||||||
if (shape == Convex) {
|
if (shape == Convex) {
|
||||||
|
@ -714,7 +714,7 @@ XAAFillPolygonStippled(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
origin = *((int *)&pDraw->x);
|
origin = pDraw->x;
|
||||||
|
|
||||||
switch( XAAIsEasyPolygon(ptsIn, count, &pGC->pCompositeClip->extents,
|
switch( XAAIsEasyPolygon(ptsIn, count, &pGC->pCompositeClip->extents,
|
||||||
origin, &topPoint, &y, &maxy, shape) ) {
|
origin, &topPoint, &y, &maxy, shape) ) {
|
||||||
|
@ -867,7 +867,7 @@ XAAFillPolygonTiled(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
origin = *((int *)&pDraw->x);
|
origin = pDraw->x;
|
||||||
|
|
||||||
switch( XAAIsEasyPolygon(ptsIn, count, &pGC->pCompositeClip->extents,
|
switch( XAAIsEasyPolygon(ptsIn, count, &pGC->pCompositeClip->extents,
|
||||||
origin, &topPoint, &y, &maxy, shape) ) {
|
origin, &topPoint, &y, &maxy, shape) ) {
|
||||||
|
|
Loading…
Reference in New Issue