]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
tabs, not spaces for indenting
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 23 Jan 2011 14:26:30 +0000 (14:26 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 23 Jan 2011 14:26:30 +0000 (14:26 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10726 d7cf8633-e32d-0410-b094-e92efae38249

dpsoftrast.c

index 6594a7199adabce4b3e5a61e4da5cfddafbfaac7..bb6f26949fc2b2231af0cc6501b75e176017b032 100644 (file)
@@ -1176,21 +1176,21 @@ void DPSOFTRAST_Draw_Span_Begin(const DPSOFTRAST_State_Draw_Span *span, float *z
        float w = span->data[0][DPSOFTRAST_ARRAY_TOTAL][3];
        float wslope = span->data[1][DPSOFTRAST_ARRAY_TOTAL][3];
        for (x = startx;x < endx;)
-    {
-        int endsub = x + DPSOFTRAST_MAXSUBSPAN-1;
-        float z = 1.0f / (w + wslope * x), dz;
-        if (endsub >= endx)
-        {
-            endsub = endx-1;
-            dz = endsub > x ? (1.0f / (w + wslope * endsub) - z) / (endsub - x) : 0.0f;
-        }
-        else
-        {
-            dz = (1.0f / (w + wslope * endsub) - z) * (1.0f / (DPSOFTRAST_MAXSUBSPAN-1));
-        }
-        for (; x <= endsub; x++, z += dz)
-            zf[x] = z;
-    } 
+       {
+               int endsub = x + DPSOFTRAST_MAXSUBSPAN-1;
+               float z = 1.0f / (w + wslope * x), dz;
+               if (endsub >= endx)
+               {
+                       endsub = endx-1;
+                       dz = endsub > x ? (1.0f / (w + wslope * endsub) - z) / (endsub - x) : 0.0f;
+               }
+               else
+               {
+                       dz = (1.0f / (w + wslope * endsub) - z) * (1.0f / (DPSOFTRAST_MAXSUBSPAN-1));
+               }
+               for (; x <= endsub; x++, z += dz)
+                       zf[x] = z;
+       }
 }
 
 void DPSOFTRAST_Draw_Span_Finish(const DPSOFTRAST_State_Draw_Span *span, const float * RESTRICT in4f)