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

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Thu Jan 7 21:36:00 CET 2010


Revision: 47141
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47141&view=rev
Author:   m_kiewitz
Date:     2010-01-07 20:36:00 +0000 (Thu, 07 Jan 2010)

Log Message:
-----------
SCI: sierra sci doesnt seem to adjust according to port on upscaledhires_save_box, this (and all the other fixes) finally fixes coordinates for kq6 hires cel placement

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

Modified: scummvm/trunk/engines/sci/graphics/gfx.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/gfx.cpp	2010-01-07 20:29:48 UTC (rev 47140)
+++ scummvm/trunk/engines/sci/graphics/gfx.cpp	2010-01-07 20:36:00 UTC (rev 47141)
@@ -275,12 +275,12 @@
 	if (workerRect.isEmpty()) // nothing to save
 		return NULL_REG;
 
-	OffsetRect(workerRect);
-
 	if (screenMask == SCI_SCREEN_MASK_DISPLAY) {
-		// Adjust rect to upscaled hires
+		// Adjust rect to upscaled hires, but dont adjust according to port
 		workerRect.top *= 2; workerRect.bottom *= 2; workerRect.bottom++;
 		workerRect.left *= 2; workerRect.right *= 2; workerRect.right++;
+	} else {
+		OffsetRect(workerRect);
 	}
 
 	// now actually ask _screen how much space it will need for saving


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