[Scummvm-cvs-logs] SF.net SVN: scummvm:[35294] scummvm/trunk/engines/saga

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Tue Dec 9 22:09:46 CET 2008


Revision: 35294
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35294&view=rev
Author:   thebluegr
Date:     2008-12-09 21:09:45 +0000 (Tue, 09 Dec 2008)

Log Message:
-----------
Some more dirty rectangle fixes (some glitches still remain)

Modified Paths:
--------------
    scummvm/trunk/engines/saga/interface.cpp
    scummvm/trunk/engines/saga/render.cpp

Modified: scummvm/trunk/engines/saga/interface.cpp
===================================================================
--- scummvm/trunk/engines/saga/interface.cpp	2008-12-09 19:54:01 UTC (rev 35293)
+++ scummvm/trunk/engines/saga/interface.cpp	2008-12-09 21:09:45 UTC (rev 35294)
@@ -379,6 +379,7 @@
 		}
 		_vm->_gfx->showCursor(true);
 		draw();
+		_vm->_render->setFullRefresh(true);
 	}
 
 	return SUCCESS;

Modified: scummvm/trunk/engines/saga/render.cpp
===================================================================
--- scummvm/trunk/engines/saga/render.cpp	2008-12-09 19:54:01 UTC (rev 35293)
+++ scummvm/trunk/engines/saga/render.cpp	2008-12-09 21:09:45 UTC (rev 35294)
@@ -230,7 +230,8 @@
  	 	Common::List<Common::Rect>::const_iterator it;
  	 	for (it = _dirtyRects.begin(); it != _dirtyRects.end(); ++it) {
 			//_backGroundSurface.frameRect(*it, 1);		// DEBUG
-			g_system->copyRectToScreen((byte *)_backGroundSurface.pixels, _backGroundSurface.w, it->left, it->top, it->width(), it->height());
+			if (it->bottom <= _vm->_scene->getHeight())
+				g_system->copyRectToScreen((byte *)_backGroundSurface.pixels, _backGroundSurface.w, it->left, it->top, it->width(), it->height());
 		}
 	}
 	_dirtyRects.clear();


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