[Scummvm-cvs-logs] SF.net SVN: scummvm: [22617] scummvm/trunk/engines/agi/graphics.cpp

sev at users.sourceforge.net sev at users.sourceforge.net
Wed May 24 14:16:00 CEST 2006


Revision: 22617
Author:   sev
Date:     2006-05-24 14:14:41 -0700 (Wed, 24 May 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22617&view=rev

Log Message:
-----------
Update only dirty rects instead of fullscreen update

Modified Paths:
--------------
    scummvm/trunk/engines/agi/graphics.cpp
Modified: scummvm/trunk/engines/agi/graphics.cpp
===================================================================
--- scummvm/trunk/engines/agi/graphics.cpp	2006-05-24 21:04:44 UTC (rev 22616)
+++ scummvm/trunk/engines/agi/graphics.cpp	2006-05-24 21:14:41 UTC (rev 22617)
@@ -439,10 +439,7 @@
 	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[] = {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list