cleanup (len == size)

svn-id: r12688
This commit is contained in:
Max Horn 2004-01-31 16:49:52 +00:00
parent f58e13fe4d
commit 41230fa999

View File

@ -47,14 +47,13 @@ void decompressBomp(byte *dst, const byte *src, int w, int h) {
} while (--h);
}
void bompDecodeLine(byte *dst, const byte *src, int size) {
assert(size > 0);
void bompDecodeLine(byte *dst, const byte *src, int len) {
assert(len > 0);
int len, num;
int num;
byte code, color;
len = size;
while (len) {
while (len > 0) {
code = *src++;
num = (code >> 1) + 1;
if (num > len)
@ -71,16 +70,15 @@ void bompDecodeLine(byte *dst, const byte *src, int size) {
}
}
void bompDecodeLineReverse(byte *dst, const byte *src, int size) {
assert(size > 0);
void bompDecodeLineReverse(byte *dst, const byte *src, int len) {
assert(len > 0);
dst += size;
dst += len;
int len, num;
int num;
byte code, color;
len = size;
while (len) {
while (len > 0) {
code = *src++;
num = (code >> 1) + 1;
if (num > len)