diff options
author | Eugene Sandulenko | 2006-05-24 21:14:41 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-05-24 21:14:41 +0000 |
commit | 0f5a4b304b4cb3aa498610617d3ded63aad69c3d (patch) | |
tree | 5b0c879ae2eea7b5295a85e99a04c68594aba4a1 /engines/agi/graphics.cpp | |
parent | 935d3bb4254365e557642b2713eca8b31ab3eb86 (diff) | |
download | scummvm-rg350-0f5a4b304b4cb3aa498610617d3ded63aad69c3d.tar.gz scummvm-rg350-0f5a4b304b4cb3aa498610617d3ded63aad69c3d.tar.bz2 scummvm-rg350-0f5a4b304b4cb3aa498610617d3ded63aad69c3d.zip |
Update only dirty rects instead of fullscreen update
svn-id: r22617
Diffstat (limited to 'engines/agi/graphics.cpp')
-rw-r--r-- | engines/agi/graphics.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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[] = { |