[Scummvm-cvs-logs] SF.net SVN: scummvm: [31204] scummvm/trunk/engines/kyra

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Thu Mar 20 13:07:08 CET 2008


Revision: 31204
          http://scummvm.svn.sourceforge.net/scummvm/?rev=31204&view=rev
Author:   lordhoto
Date:     2008-03-20 05:07:06 -0700 (Thu, 20 Mar 2008)

Log Message:
-----------
Fixed bug #1920869 "HoF: palette artifacts in inventory".

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/gui_v2.cpp
    scummvm/trunk/engines/kyra/screen_v2.cpp

Modified: scummvm/trunk/engines/kyra/gui_v2.cpp
===================================================================
--- scummvm/trunk/engines/kyra/gui_v2.cpp	2008-03-20 11:58:18 UTC (rev 31203)
+++ scummvm/trunk/engines/kyra/gui_v2.cpp	2008-03-20 12:07:06 UTC (rev 31204)
@@ -738,7 +738,7 @@
 	int frames = movie.opened() ? movie.frames() : 6;
 	memcpy(_screenBuffer, _screen->getCPagePtr(2), 64000);
 	uint8 overlay[0x100];
-	_screen->generateOverlay(_screen->getPalette(0), overlay, 0, 32);
+	_screen->generateOverlay(_screen->getPalette(0), overlay, 0, 50);
 	_screen->hideMouse();
 	_screen->copyRegion(0x46, 0x90, 0x46, 0x79, 0x71, 0x17, 0, 2);
 	_screen->showMouse();

Modified: scummvm/trunk/engines/kyra/screen_v2.cpp
===================================================================
--- scummvm/trunk/engines/kyra/screen_v2.cpp	2008-03-20 11:58:18 UTC (rev 31203)
+++ scummvm/trunk/engines/kyra/screen_v2.cpp	2008-03-20 12:07:06 UTC (rev 31204)
@@ -152,7 +152,7 @@
 }
 
 void Screen_v2::applyOverlay(int x, int y, int w, int h, int pageNum, const uint8 *overlay) {
-	uint8 * dst = getPagePtr(pageNum) + y * 320 + x;
+	uint8 *dst = getPagePtr(pageNum) + y * 320 + x;
 	while (h--) {
 		for (int wi = 0; wi < w; ++wi) {
 			uint8 index = *dst;


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