fix silly mistakes

This commit is contained in:
Zack Rusin 2008-05-07 19:34:12 -04:00
parent fe586f8612
commit 22323af525
2 changed files with 2 additions and 4 deletions

View file

@ -28,7 +28,7 @@ static void FUNC(struct draw_pt_front_end *frontend,
for (j = 0; j + first <= count; j += i) {
unsigned end = MIN2(FETCH_MAX, count - j);
end -= (end % incr);
for (i = 0; i < count; i++) {
for (i = 0; i < end; i++) {
POINT(varray, i + 0);
}
i = end;

View file

@ -85,7 +85,7 @@ static void FUNC(struct draw_pt_front_end *frontend,
else {
for (j = 0; j + first <= count;) {
unsigned end = MIN2(FETCH_MAX, count - j);
//end -= (end % incr);
end -= (end % incr);
for (i = 0; i+2 < end; i++) {
TRIANGLE(varray, DRAW_PIPE_RESET_STIPPLE | DRAW_PIPE_EDGE_FLAG_ALL,
i + 0 + (i&1), i + 1 - (i&1), i + 2);
@ -93,8 +93,6 @@ static void FUNC(struct draw_pt_front_end *frontend,
fetch_init(varray, end);
varray_flush(varray);
j += end;
if (j <= count)
j -= incr;
}
}
break;