diff options
author | Matthew Hoops | 2011-09-21 19:42:45 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-09-21 19:42:45 -0400 |
commit | 64d0b6df58195fb42cfc813270b6d2107c3404c8 (patch) | |
tree | 307e660ff0462a52bcee742d58cf30e1a97e947f | |
parent | d4a731c0f3a529bb9376f7ee532877e642f7aa6b (diff) | |
download | scummvm-rg350-64d0b6df58195fb42cfc813270b6d2107c3404c8.tar.gz scummvm-rg350-64d0b6df58195fb42cfc813270b6d2107c3404c8.tar.bz2 scummvm-rg350-64d0b6df58195fb42cfc813270b6d2107c3404c8.zip |
PEGASUS: Fix bug with drawing dirty rects
-rw-r--r-- | engines/pegasus/graphics.cpp | 2 |
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; |