Skip to content

Commit

Permalink
PEGASUS: Fix bug with drawing dirty rects
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Hoops committed Sep 21, 2011
1 parent d4a731c commit 64d0b6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/pegasus/graphics.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 64d0b6d

Please sign in to comment.