aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus/surface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pegasus/surface.cpp')
-rwxr-xr-xengines/pegasus/surface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/pegasus/surface.cpp b/engines/pegasus/surface.cpp
index fb64c92c21..ebef03e79a 100755
--- a/engines/pegasus/surface.cpp
+++ b/engines/pegasus/surface.cpp
@@ -239,7 +239,7 @@ void Picture::initFromPICTFile(const Common::String &fileName, bool transparent)
Common::Rect surfaceBounds;
getSurfaceBounds(surfaceBounds);
- setBounds(surfaceBounds);
+ sizeElement(surfaceBounds.width(), surfaceBounds.height());
}
void Picture::initFromPICTResource(Common::MacResManager *resFork, uint16 id, bool transparent) {
@@ -247,7 +247,7 @@ void Picture::initFromPICTResource(Common::MacResManager *resFork, uint16 id, bo
Common::Rect surfaceBounds;
getSurfaceBounds(surfaceBounds);
- setBounds(surfaceBounds);
+ sizeElement(surfaceBounds.width(), surfaceBounds.height());
}
} // End of namespace Pegasus