MACVENTURE: Fix small render error

This commit is contained in:
Borja Lorente 2016-07-17 02:06:35 +02:00
parent a06f291280
commit 33ed84ff74
2 changed files with 7 additions and 5 deletions

View file

@ -386,11 +386,13 @@ bool ImageAsset::isRectInside(Common::Rect rect) {
return false; return false;
} }
uint ImageAsset::getWidth() { int ImageAsset::getWidth() {
if (_imgData.size() == 0) return 0;
return MAX(0, (int)_bitWidth); return MAX(0, (int)_bitWidth);
} }
uint ImageAsset::getHeight() { int ImageAsset::getHeight() {
if (_imgData.size() == 0) return 0;
return MAX(0, (int)_bitHeight); return MAX(0, (int)_bitHeight);
} }

View file

@ -63,8 +63,8 @@ public:
bool isPointInside(Common::Point point); bool isPointInside(Common::Point point);
bool isRectInside(Common::Rect rect); bool isRectInside(Common::Rect rect);
uint getWidth(); int getWidth();
uint getHeight(); int getHeight();
private: private:
void decodePPIC(ObjID id, Common::Array<byte> &data); void decodePPIC(ObjID id, Common::Array<byte> &data);