diff options
author | Borja Lorente | 2016-07-16 19:57:36 +0200 |
---|---|---|
committer | Borja Lorente | 2016-08-14 18:55:17 +0200 |
commit | a06f291280e0897beed18e63e269938dfa45ccef (patch) | |
tree | fa589f2c5cdda38677f343c89429aa8cce71a903 /engines/macventure/image.cpp | |
parent | 734b453c86bb20b2cb52c4f695f8a770b97be459 (diff) | |
download | scummvm-rg350-a06f291280e0897beed18e63e269938dfa45ccef.tar.gz scummvm-rg350-a06f291280e0897beed18e63e269938dfa45ccef.tar.bz2 scummvm-rg350-a06f291280e0897beed18e63e269938dfa45ccef.zip |
MACVENTURE: Add basic game save/load feature
Diffstat (limited to 'engines/macventure/image.cpp')
-rw-r--r-- | engines/macventure/image.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/macventure/image.cpp b/engines/macventure/image.cpp index cbe3cc910d..fa281eb19a 100644 --- a/engines/macventure/image.cpp +++ b/engines/macventure/image.cpp @@ -387,11 +387,11 @@ bool ImageAsset::isRectInside(Common::Rect rect) { } uint ImageAsset::getWidth() { - return _bitWidth; + return MAX(0, (int)_bitWidth); } uint ImageAsset::getHeight() { - return _bitHeight; + return MAX(0, (int)_bitHeight); } void ImageAsset::blitDirect(Graphics::ManagedSurface * target, uint32 ox, uint32 oy, const Common::Array<byte>& data) { |