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 43cf90af28..69eeb31edf 100755
--- a/engines/pegasus/surface.cpp
+++ b/engines/pegasus/surface.cpp
@@ -164,7 +164,7 @@ void Surface::copyToCurrentPortTransparent(const Common::Rect &rect) const {
}
void Surface::copyToCurrentPort(const Common::Rect &srcRect, const Common::Rect &dstRect) const {
- Graphics::Surface *screen = ((PegasusEngine *)g_engine)->_gfx->getWorkArea();
+ Graphics::Surface *screen = ((PegasusEngine *)g_engine)->_gfx->getCurSurface();
byte *src = (byte *)_surface->getBasePtr(srcRect.left, srcRect.top);
byte *dst = (byte *)screen->getBasePtr(dstRect.left, dstRect.top);
@@ -182,7 +182,7 @@ void Surface::copyToCurrentPortTransparent(const Common::Rect &srcRect, const Co
uint32 transColor1 = g_system->getScreenFormat().RGBToColor(0xff, 0xff, 0xff);
uint32 transColor2 = g_system->getScreenFormat().RGBToColor(0xf8, 0xf8, 0xf8);
- Graphics::Surface *screen = ((PegasusEngine *)g_engine)->_gfx->getWorkArea();
+ Graphics::Surface *screen = ((PegasusEngine *)g_engine)->_gfx->getCurSurface();
byte *src = (byte *)_surface->getBasePtr(srcRect.left, srcRect.top);
byte *dst = (byte *)screen->getBasePtr(dstRect.left, dstRect.top);