SHERLOCK: Fix compilation

This commit is contained in:
Eugene Sandulenko 2023-02-28 15:26:42 +01:00
parent 8fea0be1bd
commit b58896b9a8
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -107,12 +107,12 @@ void ImageFile::load(Common::SeekableReadStream &stream, bool skipPalette, bool
// the titles is unclear but skipping it seems to have no ill effect.
// Just skip it.
if (frame._width > 32768) {
frame._width = -(int16_t)frame._width;
frame._width = -(int16)frame._width;
invalid = true;
}
if (frame._height > 32768) {
frame._height = -(int16_t)frame._height;
frame._height = -(int16)frame._height;
invalid = true;
}