[Scummvm-cvs-logs] SF.net SVN: scummvm:[50593] scummvm/trunk/engines/sci/graphics/paint16.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Fri Jul 2 11:09:23 CEST 2010


Revision: 50593
          http://scummvm.svn.sourceforge.net/scummvm/?rev=50593&view=rev
Author:   m_kiewitz
Date:     2010-07-02 09:09:22 +0000 (Fri, 02 Jul 2010)

Log Message:
-----------
SCI: changing adjusting of upscaled hires box coordinates

Modified Paths:
--------------
    scummvm/trunk/engines/sci/graphics/paint16.cpp

Modified: scummvm/trunk/engines/sci/graphics/paint16.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/paint16.cpp	2010-07-02 08:55:12 UTC (rev 50592)
+++ scummvm/trunk/engines/sci/graphics/paint16.cpp	2010-07-02 09:09:22 UTC (rev 50593)
@@ -317,11 +317,12 @@
 		return NULL_REG;
 
 	if (screenMask == GFX_SCREEN_MASK_DISPLAY) {
+		// The coordinates we are given are actually up-to-including right/bottom - we extend accordingly
+		workerRect.bottom++;
+		workerRect.right++;
 		// Adjust rect to upscaled hires, but dont adjust according to port
 		_screen->adjustToUpscaledCoordinates(workerRect.top, workerRect.left);
 		_screen->adjustToUpscaledCoordinates(workerRect.bottom, workerRect.right);
-		workerRect.bottom++;
-		workerRect.right++;
 	} else {
 		_ports->offsetRect(workerRect);
 	}


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