aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/tinsel/background.cpp2
-rw-r--r--engines/tinsel/bmv.cpp1
-rw-r--r--engines/tinsel/graphics.cpp1
-rw-r--r--engines/tinsel/palette.cpp7
4 files changed, 3 insertions, 8 deletions
diff --git a/engines/tinsel/background.cpp b/engines/tinsel/background.cpp
index 94525e33dd..583b9817a9 100644
--- a/engines/tinsel/background.cpp
+++ b/engines/tinsel/background.cpp
@@ -249,6 +249,8 @@ void DrawBackgnd(void) {
UpdateScreenRect(*r);
}
+ g_system->updateScreen();
+
// delete all the clipping rectangles
ResetClipRect();
}
diff --git a/engines/tinsel/bmv.cpp b/engines/tinsel/bmv.cpp
index 1df932f1af..1e9693542e 100644
--- a/engines/tinsel/bmv.cpp
+++ b/engines/tinsel/bmv.cpp
@@ -1118,6 +1118,7 @@ void CopyMovieToScreen(void) {
BmvDrawText(true);
PalettesToVideoDAC(); // Keep palette up-to-date
UpdateScreenRect(Common::Rect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT));
+ g_system->updateScreen();
BmvDrawText(false);
}
diff --git a/engines/tinsel/graphics.cpp b/engines/tinsel/graphics.cpp
index cb334d96b0..0b3f2e6e24 100644
--- a/engines/tinsel/graphics.cpp
+++ b/engines/tinsel/graphics.cpp
@@ -713,7 +713,6 @@ void UpdateScreenRect(const Common::Rect &pClip) {
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();
}
/**
diff --git a/engines/tinsel/palette.cpp b/engines/tinsel/palette.cpp
index 8df9e9a375..84e88fe06b 100644
--- a/engines/tinsel/palette.cpp
+++ b/engines/tinsel/palette.cpp
@@ -133,7 +133,6 @@ void psxPaletteMapper(PALQ *originalPal, uint8 *psxClut, byte *mapperTable) {
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 @@ void PalettesToVideoDAC(void) {
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 @@ void PalettesToVideoDAC(void) {
// clear all palette moved bits
for (pPalQ = palAllocData; pPalQ < palAllocData + NUM_PALETTES; pPalQ++)
pPalQ->posInDAC &= ~PALETTE_MOVED;
-
- if (needUpdate)
- g_system->updateScreen();
}
/**