From 64d0b6df58195fb42cfc813270b6d2107c3404c8 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Wed, 21 Sep 2011 19:42:45 -0400 Subject: PEGASUS: Fix bug with drawing dirty rects --- engines/pegasus/graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/pegasus/graphics.cpp') 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; -- cgit v1.2.3