mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 18:27:26 +00:00
GLK: FROTZ: Fix reading placeholder rects from Blorb files
This commit is contained in:
parent
3457d3155e
commit
f515394e78
@ -156,10 +156,10 @@ Common::SeekableReadStream *Pics::createReadStreamForMember(const Common::String
|
||||
dest = decoder.decode(*src, e._flags, *_palette, kMCGA, e._width, e._height);
|
||||
delete src;
|
||||
} else {
|
||||
byte *rect = (byte *)malloc(2 * sizeof(uint16));
|
||||
WRITE_LE_UINT16(rect, e._width);
|
||||
WRITE_LE_UINT16(rect + 2, e._height);
|
||||
dest = new Common::MemoryReadStream(rect, 2 * sizeof(uint16), DisposeAfterUse::YES);
|
||||
byte *rect = (byte *)malloc(2 * sizeof(uint32));
|
||||
WRITE_BE_UINT32(rect, e._width);
|
||||
WRITE_BE_UINT32(rect + 4, e._height);
|
||||
dest = new Common::MemoryReadStream(rect, 2 * sizeof(uint32), DisposeAfterUse::YES);
|
||||
}
|
||||
|
||||
f.close();
|
||||
|
@ -135,8 +135,8 @@ Picture *Pictures::load(uint32 id) {
|
||||
palCount = raw.getPaletteColorCount();
|
||||
transColor = raw.getTransparentColor();
|
||||
} else if (f.open(Common::String::format("pic%u.rect", id))) {
|
||||
rectImg.w = f.readUint16LE();
|
||||
rectImg.h = f.readUint16LE();
|
||||
rectImg.w = f.readUint32BE();
|
||||
rectImg.h = f.readUint32BE();
|
||||
img = &rectImg;
|
||||
} else {
|
||||
// No such picture
|
||||
|
Loading…
x
Reference in New Issue
Block a user