diff --git a/hw/xgl/xglfill.c b/hw/xgl/xglfill.c index 4bce65690..1bcf41daa 100644 --- a/hw/xgl/xglfill.c +++ b/hw/xgl/xglfill.c @@ -376,7 +376,10 @@ xglFillLine (DrawablePtr pDrawable, while (nptTmp--) { if (pptTmp->x != pt.x && pptTmp->y != pt.y) + { horizontalAndVertical = FALSE; + break; + } pt = *pptTmp++; }