mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-03 15:41:41 +00:00
Casting 'buffer' to uint32 makes absolutely no sense to me. As far as I can
tell, we just want to add an offset to a byte pointer. svn-id: r24254
This commit is contained in:
parent
82775ed890
commit
651f9f2ad7
@ -275,9 +275,9 @@ void AGOSEngine::convertAmiga(byte *srcBuf, int32 fileSize) {
|
||||
bufptrout = bufferout;
|
||||
clipnumber = 0;
|
||||
while(1) {
|
||||
clipoffset = READ_BE_UINT32(bufptr); bufptr +=4;
|
||||
clipheight = READ_BE_UINT16(bufptr); bufptr +=2;
|
||||
clipwidth = READ_BE_UINT16(bufptr); bufptr +=2;
|
||||
clipoffset = READ_BE_UINT32(bufptr); bufptr += 4;
|
||||
clipheight = READ_BE_UINT16(bufptr); bufptr += 2;
|
||||
clipwidth = READ_BE_UINT16(bufptr); bufptr += 2;
|
||||
if (clipoffset != 0)
|
||||
break;
|
||||
WRITE_BE_UINT32(bufptrout, 0); bufptrout += 4;
|
||||
@ -285,7 +285,7 @@ void AGOSEngine::convertAmiga(byte *srcBuf, int32 fileSize) {
|
||||
clipnumber++;
|
||||
}
|
||||
|
||||
clipsend = (byte *)(clipoffset + (uint32)buffer);
|
||||
clipsend = buffer + clipoffset;
|
||||
bufoutend = clipoffset;
|
||||
while (bufptr <= clipsend) {
|
||||
if (clipoffset != 0) {
|
||||
@ -294,9 +294,9 @@ void AGOSEngine::convertAmiga(byte *srcBuf, int32 fileSize) {
|
||||
WRITE_BE_UINT32(bufptrout, 0); bufptrout += 4;
|
||||
WRITE_BE_UINT32(bufptrout, 0); bufptrout += 4;
|
||||
}
|
||||
clipoffset = READ_BE_UINT32(bufptr); bufptr +=4;
|
||||
clipheight = READ_BE_UINT16(bufptr); bufptr +=2;
|
||||
clipwidth = READ_BE_UINT16(bufptr); bufptr +=2;
|
||||
clipoffset = READ_BE_UINT32(bufptr); bufptr += 4;
|
||||
clipheight = READ_BE_UINT16(bufptr); bufptr += 2;
|
||||
clipwidth = READ_BE_UINT16(bufptr); bufptr += 2;
|
||||
clipnumber++;
|
||||
}
|
||||
outlength = bufoutend;
|
||||
|
Loading…
Reference in New Issue
Block a user