aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus/graphics.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2011-09-21 19:42:45 -0400
committerMatthew Hoops2011-09-21 19:42:45 -0400
commit64d0b6df58195fb42cfc813270b6d2107c3404c8 (patch)
tree307e660ff0462a52bcee742d58cf30e1a97e947f /engines/pegasus/graphics.cpp
parentd4a731c0f3a529bb9376f7ee532877e642f7aa6b (diff)
downloadscummvm-rg350-64d0b6df58195fb42cfc813270b6d2107c3404c8.tar.gz
scummvm-rg350-64d0b6df58195fb42cfc813270b6d2107c3404c8.tar.bz2
scummvm-rg350-64d0b6df58195fb42cfc813270b6d2107c3404c8.zip
PEGASUS: Fix bug with drawing dirty rects
Diffstat (limited to 'engines/pegasus/graphics.cpp')
-rw-r--r--engines/pegasus/graphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/pegasus/graphics.cpp b/engines/pegasus/graphics.cpp
index a30b2c8dfd..9431293aa1 100644
--- a/engines/pegasus/graphics.cpp
+++ b/engines/pegasus/graphics.cpp
@@ -294,7 +294,7 @@ void GraphicsManager::updateDisplay() {
}
// Copy only the dirty rect to the screen
- g_system->copyRectToScreen((byte *)_workArea.pixels, _workArea.pitch, _dirtyRect.left, _dirtyRect.top, _dirtyRect.width(), _dirtyRect.height());
+ g_system->copyRectToScreen((byte *)_workArea.getBasePtr(_dirtyRect.left, _dirtyRect.top), _workArea.pitch, _dirtyRect.left, _dirtyRect.top, _dirtyRect.width(), _dirtyRect.height());
// Mark the screen as dirty
screenDirty = true;