mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-01 08:23:15 +00:00
PEGASUS: Fix bounds of Pictures
This commit is contained in:
parent
64d0b6df58
commit
46bc7e6c4d
@ -234,4 +234,20 @@ void Picture::draw(const Common::Rect &r) {
|
||||
drawImage(r2, r1);
|
||||
}
|
||||
|
||||
void Picture::initFromPICTFile(const Common::String &fileName, bool transparent) {
|
||||
Frame::initFromPICTFile(fileName, transparent);
|
||||
|
||||
Common::Rect surfaceBounds;
|
||||
getSurfaceBounds(surfaceBounds);
|
||||
setBounds(surfaceBounds);
|
||||
}
|
||||
|
||||
void Picture::initFromPICTResource(Common::MacResManager *resFork, uint16 id, bool transparent) {
|
||||
Frame::initFromPICTResource(resFork, id, transparent);
|
||||
|
||||
Common::Rect surfaceBounds;
|
||||
getSurfaceBounds(surfaceBounds);
|
||||
setBounds(surfaceBounds);
|
||||
}
|
||||
|
||||
} // End of namespace Pegasus
|
||||
|
@ -120,6 +120,9 @@ public:
|
||||
Picture(const tDisplayElementID id) : DisplayElement(id) {}
|
||||
virtual ~Picture() {}
|
||||
|
||||
virtual void initFromPICTFile(const Common::String &fileName, bool transparent = false);
|
||||
virtual void initFromPICTResource(Common::MacResManager *resFork, uint16 id, bool transparent = false);
|
||||
|
||||
virtual void draw(const Common::Rect &);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user