From 0f5a4b304b4cb3aa498610617d3ded63aad69c3d Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 24 May 2006 21:14:41 +0000 Subject: Update only dirty rects instead of fullscreen update svn-id: r22617 --- engines/agi/graphics.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'engines/agi/graphics.cpp') diff --git a/engines/agi/graphics.cpp b/engines/agi/graphics.cpp index 361eff245e..6dfb00825f 100644 --- a/engines/agi/graphics.cpp +++ b/engines/agi/graphics.cpp @@ -439,10 +439,7 @@ void gfx_putblock(int x1, int y1, int x2, int y2) { if (y2 >= GFX_HEIGHT) y2 = GFX_HEIGHT - 1; - // force full update until fix wrong partial updates - g_system->copyRectToScreen(screen, 320, 0, 0, 320, 200); - //g_system->copyRectToScreen(screen, 320, x1, y1, x2 - x1 + 1, y2 - y1 + 1); - //g_system->updateScreen(); + g_system->copyRectToScreen(screen + y1 * 320 + x1, 320, x1, y1, x2 - x1 + 1, y2 - y1 + 1); } static const byte mouseCursorArrow[] = { -- cgit v1.2.3