Minor optimization
authorDavid Reveman <c99drn@cs.umu.se>
Wed, 27 Apr 2005 10:34:33 +0000 (10:34 +0000)
committerDavid Reveman <c99drn@cs.umu.se>
Wed, 27 Apr 2005 10:34:33 +0000 (10:34 +0000)
hw/xgl/xglfill.c

index 4bce656..1bcf41d 100644 (file)
@@ -376,7 +376,10 @@ xglFillLine (DrawablePtr pDrawable,
        while (nptTmp--)
        {
            if (pptTmp->x != pt.x && pptTmp->y != pt.y)
+           {
                horizontalAndVertical = FALSE;
+               break;
+           }
 
            pt = *pptTmp++;
        }