[Scummvm-cvs-logs] SF.net SVN: scummvm:[43112] scummvm/trunk/engines/tinsel

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Sat Aug 8 11:34:23 CEST 2009


Revision: 43112
          http://scummvm.svn.sourceforge.net/scummvm/?rev=43112&view=rev
Author:   dreammaster
Date:     2009-08-08 09:34:23 +0000 (Sat, 08 Aug 2009)

Log Message:
-----------
Commit of dhewg's patch to fix screen refreshes on the Wii

Modified Paths:
--------------
    scummvm/trunk/engines/tinsel/background.cpp
    scummvm/trunk/engines/tinsel/bmv.cpp
    scummvm/trunk/engines/tinsel/graphics.cpp
    scummvm/trunk/engines/tinsel/palette.cpp

Modified: scummvm/trunk/engines/tinsel/background.cpp
===================================================================
--- scummvm/trunk/engines/tinsel/background.cpp	2009-08-08 09:23:09 UTC (rev 43111)
+++ scummvm/trunk/engines/tinsel/background.cpp	2009-08-08 09:34:23 UTC (rev 43112)
@@ -249,6 +249,8 @@
 		UpdateScreenRect(*r);
 	}
 
+	g_system->updateScreen();
+
 	// delete all the clipping rectangles
 	ResetClipRect();
 }

Modified: scummvm/trunk/engines/tinsel/bmv.cpp
===================================================================
--- scummvm/trunk/engines/tinsel/bmv.cpp	2009-08-08 09:23:09 UTC (rev 43111)
+++ scummvm/trunk/engines/tinsel/bmv.cpp	2009-08-08 09:34:23 UTC (rev 43112)
@@ -1118,6 +1118,7 @@
 	BmvDrawText(true);
 	PalettesToVideoDAC();			// Keep palette up-to-date
 	UpdateScreenRect(Common::Rect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT));
+	g_system->updateScreen();
 	BmvDrawText(false);
 }
 

Modified: scummvm/trunk/engines/tinsel/graphics.cpp
===================================================================
--- scummvm/trunk/engines/tinsel/graphics.cpp	2009-08-08 09:23:09 UTC (rev 43111)
+++ scummvm/trunk/engines/tinsel/graphics.cpp	2009-08-08 09:34:23 UTC (rev 43112)
@@ -713,7 +713,6 @@
 	byte *pSrc = (byte *)_vm->screen().getBasePtr(pClip.left, pClip.top);
 	g_system->copyRectToScreen(pSrc, _vm->screen().pitch, pClip.left, pClip.top + yOffset,
 		pClip.width(), pClip.height());
-	g_system->updateScreen();
 }
 
 /**

Modified: scummvm/trunk/engines/tinsel/palette.cpp
===================================================================
--- scummvm/trunk/engines/tinsel/palette.cpp	2009-08-08 09:23:09 UTC (rev 43111)
+++ scummvm/trunk/engines/tinsel/palette.cpp	2009-08-08 09:34:23 UTC (rev 43112)
@@ -133,7 +133,6 @@
 void PalettesToVideoDAC(void) {
 	PALQ *pPalQ;				// palette Q iterator
 	VIDEO_DAC_Q *pDACtail = vidDACdata;	// set tail pointer
-	bool needUpdate = false;
 
 	// while Q is not empty
 	while (pDAChead != pDACtail) {
@@ -162,9 +161,6 @@
 			pColours = pDACtail->pal.pRGBarray;
 		}
 
-		if (pDACtail->numColours > 0)
-			needUpdate = true;
-
 		// update the system palette
 		g_system->setPalette((byte *)pColours, pDACtail->destDACindex, pDACtail->numColours);
 
@@ -179,9 +175,6 @@
 	// clear all palette moved bits
 	for (pPalQ = palAllocData; pPalQ < palAllocData + NUM_PALETTES; pPalQ++)
 		pPalQ->posInDAC &= ~PALETTE_MOVED;
-
-	if (needUpdate)
-		g_system->updateScreen();
 }
 
 /**


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