(svn r1557) Replace strange if () do while () construct with a plain for ()

This commit is contained in:
tron 2005-01-18 15:26:14 +00:00
parent 5bcf3d2bc0
commit eaa6bf3f42
1 changed files with 2 additions and 2 deletions

4
gfx.c
View File

@ -23,11 +23,11 @@ void memcpy_pitch(void *d, void *s, int w, int h, int spitch, int dpitch)
byte *sp = (byte*)s;
assert(h >= 0);
if (h != 0) do {
for (; h != 0; --h) {
memcpy(dp, sp, w);
dp += dpitch;
sp += spitch;
} while (--h);
}
}