MACVENTURE: Fix small render error
This commit is contained in:
parent
a06f291280
commit
33ed84ff74
2 changed files with 7 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -63,8 +63,8 @@ public:
|
|||
bool isPointInside(Common::Point point);
|
||||
bool isRectInside(Common::Rect rect);
|
||||
|
||||
uint getWidth();
|
||||
uint getHeight();
|
||||
int getWidth();
|
||||
int getHeight();
|
||||
|
||||
private:
|
||||
void decodePPIC(ObjID id, Common::Array<byte> &data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue