[Scummvm-cvs-logs] SF.net SVN: scummvm:[43113] scummvm/branches/branch-1-0-0/engines/tinsel
dreammaster at users.sourceforge.net
dreammaster at users.sourceforge.net
Sat Aug 8 11:36:58 CEST 2009
Revision: 43113
http://scummvm.svn.sourceforge.net/scummvm/?rev=43113&view=rev
Author: dreammaster
Date: 2009-08-08 09:36:58 +0000 (Sat, 08 Aug 2009)
Log Message:
-----------
Backport of Dhweg's patch for screen refreshes on the Wii
Modified Paths:
--------------
scummvm/branches/branch-1-0-0/engines/tinsel/background.cpp
scummvm/branches/branch-1-0-0/engines/tinsel/bmv.cpp
scummvm/branches/branch-1-0-0/engines/tinsel/graphics.cpp
scummvm/branches/branch-1-0-0/engines/tinsel/palette.cpp
Modified: scummvm/branches/branch-1-0-0/engines/tinsel/background.cpp
===================================================================
--- scummvm/branches/branch-1-0-0/engines/tinsel/background.cpp 2009-08-08 09:34:23 UTC (rev 43112)
+++ scummvm/branches/branch-1-0-0/engines/tinsel/background.cpp 2009-08-08 09:36:58 UTC (rev 43113)
@@ -249,6 +249,8 @@
UpdateScreenRect(*r);
}
+ g_system->updateScreen();
+
// delete all the clipping rectangles
ResetClipRect();
}
Modified: scummvm/branches/branch-1-0-0/engines/tinsel/bmv.cpp
===================================================================
--- scummvm/branches/branch-1-0-0/engines/tinsel/bmv.cpp 2009-08-08 09:34:23 UTC (rev 43112)
+++ scummvm/branches/branch-1-0-0/engines/tinsel/bmv.cpp 2009-08-08 09:36:58 UTC (rev 43113)
@@ -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/branches/branch-1-0-0/engines/tinsel/graphics.cpp
===================================================================
--- scummvm/branches/branch-1-0-0/engines/tinsel/graphics.cpp 2009-08-08 09:34:23 UTC (rev 43112)
+++ scummvm/branches/branch-1-0-0/engines/tinsel/graphics.cpp 2009-08-08 09:36:58 UTC (rev 43113)
@@ -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/branches/branch-1-0-0/engines/tinsel/palette.cpp
===================================================================
--- scummvm/branches/branch-1-0-0/engines/tinsel/palette.cpp 2009-08-08 09:34:23 UTC (rev 43112)
+++ scummvm/branches/branch-1-0-0/engines/tinsel/palette.cpp 2009-08-08 09:36:58 UTC (rev 43113)
@@ -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