diff options
author | Borja Lorente | 2016-07-17 02:06:35 +0200 |
---|---|---|
committer | Borja Lorente | 2016-08-14 18:55:17 +0200 |
commit | 33ed84ff74fabac68d0900223e82c2717927ef2f (patch) | |
tree | 5abda7759779a07e88f849bc085b36a392afc9fd /engines/macventure/image.cpp | |
parent | a06f291280e0897beed18e63e269938dfa45ccef (diff) | |
download | scummvm-rg350-33ed84ff74fabac68d0900223e82c2717927ef2f.tar.gz scummvm-rg350-33ed84ff74fabac68d0900223e82c2717927ef2f.tar.bz2 scummvm-rg350-33ed84ff74fabac68d0900223e82c2717927ef2f.zip |
MACVENTURE: Fix small render error
Diffstat (limited to 'engines/macventure/image.cpp')
-rw-r--r-- | engines/macventure/image.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/macventure/image.cpp b/engines/macventure/image.cpp index fa281eb19a..feb4d2e78b 100644 --- a/engines/macventure/image.cpp +++ b/engines/macventure/image.cpp @@ -386,11 +386,13 @@ bool ImageAsset::isRectInside(Common::Rect rect) { return false; } -uint ImageAsset::getWidth() { +int ImageAsset::getWidth() { + if (_imgData.size() == 0) return 0; return MAX(0, (int)_bitWidth); } -uint ImageAsset::getHeight() { +int ImageAsset::getHeight() { + if (_imgData.size() == 0) return 0; return MAX(0, (int)_bitHeight); } |