aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNicola Mettifogo2007-03-12 22:45:50 +0000
committerNicola Mettifogo2007-03-12 22:45:50 +0000
commitcf816f54d9bb8ca826d0950e165a99d732355a86 (patch)
tree63f641d8b061f0271e33399c3bd5fd233ba9b8db /engines
parent30e975f9db056cd58728ebdc79689e41eb27f1d1 (diff)
downloadscummvm-rg350-cf816f54d9bb8ca826d0950e165a99d732355a86.tar.gz
scummvm-rg350-cf816f54d9bb8ca826d0950e165a99d732355a86.tar.bz2
scummvm-rg350-cf816f54d9bb8ca826d0950e165a99d732355a86.zip
removed useless routines (maybe leftovers from the amiga conversion)
svn-id: r26116
Diffstat (limited to 'engines')
-rw-r--r--engines/parallaction/dialogue.cpp11
-rw-r--r--engines/parallaction/graphics.cpp61
-rw-r--r--engines/parallaction/graphics.h4
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);