synced with scummvm to 2011-Apr-13
This commit is contained in:
parent
f0a4299aef
commit
0640dcf2c7
347 changed files with 53648 additions and 8521 deletions
|
@ -27,6 +27,7 @@
|
|||
#include "graphics/colormasks.h"
|
||||
#include "common/endian.h"
|
||||
#include "common/system.h"
|
||||
#include "common/stream.h"
|
||||
|
||||
namespace Graphics {
|
||||
|
||||
|
@ -48,7 +49,7 @@ bool loadHeader(Common::SeekableReadStream &in, ThumbnailHeader &header, bool ou
|
|||
// We also accept the bad 'BMHT' header here, for the sake of compatibility
|
||||
// with some older savegames which were written incorrectly due to a bug in
|
||||
// ScummVM which wrote the thumb header type incorrectly on LE systems.
|
||||
if (header.type != MKID_BE('THMB') && header.type != MKID_BE('BMHT')) {
|
||||
if (header.type != MKTAG('T','H','M','B') && header.type != MKTAG('B','M','H','T')) {
|
||||
if (outputWarnings)
|
||||
warning("couldn't find thumbnail header type");
|
||||
return false;
|
||||
|
@ -144,7 +145,7 @@ bool saveThumbnail(Common::WriteStream &out, const Graphics::Surface &thumb) {
|
|||
}
|
||||
|
||||
ThumbnailHeader header;
|
||||
header.type = MKID_BE('THMB');
|
||||
header.type = MKTAG('T','H','M','B');
|
||||
header.size = ThumbnailHeaderSize + thumb.w*thumb.h*thumb.bytesPerPixel;
|
||||
header.version = THMB_VERSION;
|
||||
header.width = thumb.w;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue