TINYGL: Move remaining line counter decrement near y increment

Readability-only change.
Both represent the same notion, and nb_lines is only accessed as loop
condition.
This commit is contained in:
Vincent Pelletier 2017-05-05 03:07:58 +00:00
parent a6af3a38a3
commit 218d3214d7

View file

@ -378,7 +378,6 @@ void FrameBuffer::fillTriangle(ZBufferPoint *p0, ZBufferPoint *p1, ZBufferPoint
// we draw all the scan line of the part
while (nb_lines > 0) {
nb_lines--;
int x = x1;
{
if (kDrawLogic == DRAW_DEPTH_ONLY ||
@ -633,6 +632,7 @@ void FrameBuffer::fillTriangle(ZBufferPoint *p0, ZBufferPoint *p1, ZBufferPoint
if (kDrawLogic == DRAW_SHADOW || kDrawLogic == DRAW_SHADOW_MASK)
pm1 = pm1 + xsize;
nb_lines--;
y++;
}
}