diff options
-rw-r--r-- | uxa/uxa-accel.c | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/uxa/uxa-accel.c b/uxa/uxa-accel.c index 21957a3d..e4afd137 100644 --- a/uxa/uxa-accel.c +++ b/uxa/uxa-accel.c @@ -92,21 +92,17 @@ uxa_fill_spans(DrawablePtr pDrawable, GCPtr pGC, int n, nbox = REGION_NUM_RECTS(pClip); pbox = REGION_RECTS(pClip); while (nbox--) { - if (pbox->y1 > y || pbox->y2 <= y) - continue; - - if (x1 < pbox->x1) - x1 = pbox->x1; + int X1 = x1, X2 = x2; + if (X1 < pbox->x1) + X1 = pbox->x1; - if (x2 > pbox->x2) - x2 = pbox->x2; - - if (x2 <= x1) - continue; + if (X2 > pbox->x2) + X2 = pbox->x2; - (*uxa_screen->info->solid) (dst_pixmap, - x1 + off_x, y + off_y, - x2 + off_x, y + 1 + off_y); + if (X2 > X1 && pbox->y1 <= y && pbox->y2 > y) + (*uxa_screen->info->solid) (dst_pixmap, + X1 + off_x, y + off_y, + X2 + off_x, y + 1 + off_y); pbox++; } } |