mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 17:29:11 +00:00
Full screen updates aren't automatic after palette changes anymore now. Traded some code pollution with SPEED!
svn-id: r28061
This commit is contained in:
parent
355ac5db2f
commit
5a85103374
@ -78,7 +78,8 @@ void _c_fade(void *parm) {
|
||||
_vm->_gfx->fadePalette(pal);
|
||||
_vm->_gfx->setPalette(pal);
|
||||
|
||||
_vm->waitTime( 1 );
|
||||
g_system->delayMillis(20);
|
||||
_vm->_gfx->updateScreen();
|
||||
}
|
||||
|
||||
return;
|
||||
@ -292,6 +293,9 @@ void _c_endComment(void *param) {
|
||||
}
|
||||
|
||||
_vm->_gfx->setPalette(_enginePal);
|
||||
g_system->delayMillis(20);
|
||||
_vm->_gfx->updateScreen();
|
||||
|
||||
}
|
||||
|
||||
waitUntilLeftClick();
|
||||
@ -316,11 +320,14 @@ void _c_frankenstein(void *parm) {
|
||||
for (uint16 _di = 0; _di < 30; _di++) {
|
||||
g_system->delayMillis(20);
|
||||
_vm->_gfx->setPalette(pal0, FIRST_BASE_COLOR, BASE_PALETTE_COLORS);
|
||||
_vm->_gfx->updateScreen();
|
||||
g_system->delayMillis(20);
|
||||
_vm->_gfx->setPalette(pal1, FIRST_BASE_COLOR, BASE_PALETTE_COLORS);
|
||||
_vm->_gfx->updateScreen();
|
||||
}
|
||||
|
||||
_vm->_gfx->setPalette(_vm->_gfx->_palette);
|
||||
_vm->_gfx->updateScreen();
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -30,9 +30,6 @@
|
||||
#include "parallaction/parallaction.h"
|
||||
|
||||
|
||||
|
||||
extern OSystem *g_system;
|
||||
|
||||
namespace Parallaction {
|
||||
|
||||
byte * Gfx::_buffers[];
|
||||
@ -142,7 +139,7 @@ void Gfx::setPalette(Palette pal, uint32 first, uint32 num) {
|
||||
if (_vm->getPlatform() == Common::kPlatformAmiga)
|
||||
g_system->setPalette(sysExtraPal, first+FIRST_EHB_COLOR, num);
|
||||
|
||||
g_system->updateScreen();
|
||||
// g_system->updateScreen();
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -25,6 +25,8 @@
|
||||
|
||||
#include "common/stdafx.h"
|
||||
|
||||
#include "common/system.h"
|
||||
|
||||
#include "parallaction/parallaction.h"
|
||||
#include "parallaction/sound.h"
|
||||
|
||||
@ -249,7 +251,9 @@ void Parallaction::switchBackground(const char* background, const char* mask) {
|
||||
_si += 3;
|
||||
}
|
||||
|
||||
g_system->delayMillis(20);
|
||||
_gfx->setPalette(pal);
|
||||
_gfx->updateScreen();
|
||||
}
|
||||
|
||||
_disk->loadScenery(background, mask);
|
||||
@ -371,6 +375,7 @@ void Parallaction::changeLocation(char *location) {
|
||||
_gfx->copyScreen(Gfx::kBitBack, Gfx::kBitFront);
|
||||
_gfx->copyScreen(Gfx::kBitBack, Gfx::kBit2);
|
||||
_gfx->setBlackPalette();
|
||||
_gfx->updateScreen();
|
||||
|
||||
if (_location._commands.size() > 0) {
|
||||
runCommands(_location._commands);
|
||||
@ -450,6 +455,7 @@ void Parallaction::doLocationEnterTransition() {
|
||||
_gfx->quickFadePalette(pal);
|
||||
_gfx->setPalette(pal);
|
||||
waitTime( 1 );
|
||||
_gfx->updateScreen();
|
||||
}
|
||||
|
||||
debugC(1, kDebugLocation, "doLocationEnterTransition completed");
|
||||
|
@ -435,6 +435,7 @@ void Menu::selectCharacter() {
|
||||
}
|
||||
|
||||
_vm->_gfx->setBlackPalette();
|
||||
_vm->_gfx->updateScreen();
|
||||
|
||||
_engineFlags |= kEngineChangeLocation;
|
||||
|
||||
|
@ -43,6 +43,7 @@ namespace GUI {
|
||||
class CommandSender;
|
||||
}
|
||||
|
||||
extern OSystem *g_system;
|
||||
|
||||
namespace Parallaction {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user