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

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Thu Jan 7 14:30:08 CET 2010


Revision: 47107
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47107&view=rev
Author:   m_kiewitz
Date:     2010-01-07 13:30:08 +0000 (Thu, 07 Jan 2010)

Log Message:
-----------
SCI: fixed stupid bug in putPixelOnDisplay, fixes height of displayed hires graphics in kq6

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

Modified: scummvm/trunk/engines/sci/graphics/screen.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/screen.cpp	2010-01-07 12:01:33 UTC (rev 47106)
+++ scummvm/trunk/engines/sci/graphics/screen.cpp	2010-01-07 13:30:08 UTC (rev 47107)
@@ -156,7 +156,7 @@
 // This will just change a pixel directly on displayscreen. Its supposed to get only used on upscaled-Hires games where
 //  hires content needs to get drawn ONTO the upscaled display screen (like japanese fonts, hires portraits, etc.)
 void Screen::putPixelOnDisplay(int x, int y, byte color) {
-	int offset = y * _width + x;
+	int offset = y * _displayWidth + x;
 	_displayScreen[offset] = color;
 }
 


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