diff options
-rw-r--r-- | engines/parallaction/dialogue.cpp | 11 | ||||
-rw-r--r-- | engines/parallaction/graphics.cpp | 61 | ||||
-rw-r--r-- | engines/parallaction/graphics.h | 4 |
3 files changed, 1 insertions, 75 deletions
diff --git a/engines/parallaction/dialogue.cpp b/engines/parallaction/dialogue.cpp index 4f112bc800..5455f9fad2 100644 --- a/engines/parallaction/dialogue.cpp +++ b/engines/parallaction/dialogue.cpp @@ -643,25 +643,16 @@ int16 getHoverAnswer(int16 x, int16 y, Question *q) { } -// backups background mask and path -// -// -void enterDialogue() { - _vm->_gfx->backupBackgroundMask(Gfx::kMask0); - _vm->_gfx->backupBackgroundPath(Gfx::kPath0); +void enterDialogue() { return; } -// restores background mask and path // rebuilds inventory // void exitDialogue() { - _vm->_gfx->restoreBackgroundMask(Gfx::kMask0); - _vm->_gfx->restoreBackgroundPath(Gfx::kPath0); - refreshInventory(_vm->_characterName); return; diff --git a/engines/parallaction/graphics.cpp b/engines/parallaction/graphics.cpp index 77d173a4ec..f4ff943b6a 100644 --- a/engines/parallaction/graphics.cpp +++ b/engines/parallaction/graphics.cpp @@ -35,11 +35,6 @@ extern OSystem *g_system; namespace Parallaction { -byte * _maskBackup; -byte * _pathBackup; - - - uint16 _bgLayers[4]; // @@ -800,59 +795,6 @@ void Gfx::setFont(const char* name) { } -// backups background mask -// -// -void Gfx::backupBackgroundMask(Gfx::Buffers mask) { - - byte *s = _buffers[mask]; - byte *d = _maskBackup; - - memcpy(d, s, SCREENMASK_WIDTH*SCREEN_HEIGHT); - - return; -} - -// restores background mask -// -// -void Gfx::restoreBackgroundMask(Gfx::Buffers mask) { - - byte *s = _maskBackup; - byte *d = _buffers[mask]; - - memcpy(d, s, SCREENMASK_WIDTH*SCREEN_HEIGHT); - - return; -} - -// backups background path -// -// -void Gfx::backupBackgroundPath(Gfx::Buffers path) { - - byte *s = _buffers[path]; - byte *d = _pathBackup; - - memcpy(d, s, SCREENPATH_WIDTH*SCREEN_HEIGHT); - - return; -} - -// -// restores background path -// -void Gfx::restoreBackgroundPath(Gfx::Buffers path) { - - byte *s = _pathBackup; - byte *d = _buffers[path]; - - memcpy(d, s, SCREENPATH_WIDTH*SCREEN_HEIGHT); - - return; -} - - void Gfx::restoreBackground(int16 left, int16 top, uint16 width, uint16 height) { // printf("restoreBackground(%i, %i, %i, %i)\n", left, top, width, height); @@ -1107,9 +1049,6 @@ void Gfx::initBuffers() { _buffers[kMask0] = (byte*)malloc(SCREENMASK_WIDTH * SCREEN_HEIGHT); _buffers[kPath0] = (byte*)malloc(SCREENPATH_WIDTH * SCREEN_HEIGHT); - _maskBackup = (byte*)malloc(SCREENMASK_WIDTH * SCREEN_HEIGHT); - _pathBackup = (byte*)malloc(SCREENPATH_WIDTH * SCREEN_HEIGHT); - return; } diff --git a/engines/parallaction/graphics.h b/engines/parallaction/graphics.h index 3026d921c7..a2d2700cc2 100644 --- a/engines/parallaction/graphics.h +++ b/engines/parallaction/graphics.h @@ -108,10 +108,6 @@ public: int16 queryMask(int16 v); void intGrottaHackMask(); void restoreBackground(int16 left, int16 top, uint16 width, uint16 height); - void backupBackgroundMask(Gfx::Buffers mask); - void restoreBackgroundMask(Gfx::Buffers mask); - void backupBackgroundPath(Gfx::Buffers path); - void restoreBackgroundPath(Gfx::Buffers path); // intro void maskClearRectangle(uint16 left, uint16 top, uint16 right, uint16 bottom, Gfx::Buffers mask); |