aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus/surface.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2011-09-28 19:00:57 -0400
committerMatthew Hoops2011-09-28 19:00:57 -0400
commit81eff30b8e5309a2dde8f6709f55a098acf27e48 (patch)
tree257b90e8e79844076167c572dc3909401354ba26 /engines/pegasus/surface.cpp
parentffff1beb1b8108dff51fa261f298cee67d43f37c (diff)
downloadscummvm-rg350-81eff30b8e5309a2dde8f6709f55a098acf27e48.tar.gz
scummvm-rg350-81eff30b8e5309a2dde8f6709f55a098acf27e48.tar.bz2
scummvm-rg350-81eff30b8e5309a2dde8f6709f55a098acf27e48.zip
PEGASUS: Fix date positioning
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