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

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
tron 20 years ago
parent 5bcf3d2bc0
commit eaa6bf3f42

@ -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);
}
}

Loading…
Cancel
Save