Fix bug 7344 about alpha circle drawing.

This commit is contained in:
nobody_ 2004-01-20 20:36:44 +00:00
parent d5f9ea8c0b
commit 51315eb309
2 changed files with 733 additions and 394 deletions

File diff suppressed because it is too large Load diff

View file

@ -897,10 +897,10 @@ global void VideoFillTransCircle(Uint32 color, int x, int y,
// Fill up the left/right half of the circle
if (py >= px) {
VideoDrawTransVLine(color, x + py + 1, y, px + 1, alpha);
VideoDrawTransVLine(color, x + py + 1, y - px, px, alpha);
VideoDrawTransVLine(color, x - py - 1, y, px + 1, alpha);
VideoDrawTransVLine(color, x - py - 1, y - px, px, alpha);
VideoDrawTransVLine(color, x + py + 2, y, px + 1, alpha);
VideoDrawTransVLine(color, x + py + 2, y - px, px, alpha);
VideoDrawTransVLine(color, x - py - 2, y, px + 1, alpha);
VideoDrawTransVLine(color, x - py - 2, y - px, px, alpha);
}
}
}
@ -976,10 +976,10 @@ global void VideoFillTransCircleClip(Uint32 color, int x, int y,
// Fill up the left/right half of the circle
if (py >= px) {
VideoDrawTransVLineClip(color, x + py + 1, y, px + 1, alpha);
VideoDrawTransVLineClip(color, x + py + 1, y - px, px, alpha);
VideoDrawTransVLineClip(color, x - py - 1, y, px + 1, alpha);
VideoDrawTransVLineClip(color, x - py - 1, y - px, px, alpha);
VideoDrawTransVLineClip(color, x + py + 2, y, px + 1, alpha);
VideoDrawTransVLineClip(color, x + py + 2, y - px, px, alpha);
VideoDrawTransVLineClip(color, x - py - 2, y, px + 1, alpha);
VideoDrawTransVLineClip(color, x - py - 2, y - px, px, alpha);
}
}
}
@ -1772,8 +1772,8 @@ global void VideoFillTransCircle(Uint32 color, int x, int y,
// Fill up the left/right half of the circle
if (py >= px) {
VideoDrawTransVLine(color, x + py + 1, y, px + 1, alpha);
VideoDrawTransVLine(color, x + py + 1, y - px, px, alpha);
/* VideoDrawTransVLine(color, x + py + 1, y, px + 1, alpha);
VideoDrawTransVLine(color, x + py + 1, y - px, px, alpha);*/
VideoDrawTransVLine(color, x - py - 1, y, px + 1, alpha);
VideoDrawTransVLine(color, x - py - 1, y - px, px, alpha);
}
@ -1809,8 +1809,8 @@ global void VideoFillTransCircleClip(Uint32 color, int x, int y,
// Fill up the left/right half of the circle
if (py >= px) {
VideoDrawTransVLineClip(color, x + py + 1, y, px + 1, alpha);
VideoDrawTransVLineClip(color, x + py + 1, y - px, px, alpha);
/* VideoDrawTransVLineClip(color, x + py + 1, y, px + 1, alpha);
VideoDrawTransVLineClip(color, x + py + 1, y - px, px, alpha);*/
VideoDrawTransVLineClip(color, x - py - 1, y, px + 1, alpha);
VideoDrawTransVLineClip(color, x - py - 1, y - px, px, alpha);
}