mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-07 03:18:17 +00:00
cleanup (len == size)
svn-id: r12688
This commit is contained in:
parent
f58e13fe4d
commit
41230fa999
@ -47,14 +47,13 @@ void decompressBomp(byte *dst, const byte *src, int w, int h) {
|
|||||||
} while (--h);
|
} while (--h);
|
||||||
}
|
}
|
||||||
|
|
||||||
void bompDecodeLine(byte *dst, const byte *src, int size) {
|
void bompDecodeLine(byte *dst, const byte *src, int len) {
|
||||||
assert(size > 0);
|
assert(len > 0);
|
||||||
|
|
||||||
int len, num;
|
int num;
|
||||||
byte code, color;
|
byte code, color;
|
||||||
|
|
||||||
len = size;
|
while (len > 0) {
|
||||||
while (len) {
|
|
||||||
code = *src++;
|
code = *src++;
|
||||||
num = (code >> 1) + 1;
|
num = (code >> 1) + 1;
|
||||||
if (num > len)
|
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) {
|
void bompDecodeLineReverse(byte *dst, const byte *src, int len) {
|
||||||
assert(size > 0);
|
assert(len > 0);
|
||||||
|
|
||||||
dst += size;
|
dst += len;
|
||||||
|
|
||||||
int len, num;
|
int num;
|
||||||
byte code, color;
|
byte code, color;
|
||||||
|
|
||||||
len = size;
|
while (len > 0) {
|
||||||
while (len) {
|
|
||||||
code = *src++;
|
code = *src++;
|
||||||
num = (code >> 1) + 1;
|
num = (code >> 1) + 1;
|
||||||
if (num > len)
|
if (num > len)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user