From: havoc Date: Sun, 23 Jan 2011 14:26:30 +0000 (+0000) Subject: tabs, not spaces for indenting X-Git-Tag: xonotic-v0.5.0~438^2~115 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c3d7fd5f2cd97819deb3edf05bfd01878f43ffec;p=xonotic%2Fdarkplaces.git tabs, not spaces for indenting git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10726 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/dpsoftrast.c b/dpsoftrast.c index 6594a719..bb6f2694 100644 --- a/dpsoftrast.c +++ b/dpsoftrast.c @@ -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)