[Scummvm-cvs-logs] SF.net SVN: scummvm: [26116] scummvm/trunk/engines/parallaction

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Mon Mar 12 23:45:50 CET 2007


Revision: 26116
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26116&view=rev
Author:   peres001
Date:     2007-03-12 15:45:50 -0700 (Mon, 12 Mar 2007)

Log Message:
-----------
removed useless routines (maybe leftovers from the amiga conversion)

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/dialogue.cpp
    scummvm/trunk/engines/parallaction/graphics.cpp
    scummvm/trunk/engines/parallaction/graphics.h

Modified: scummvm/trunk/engines/parallaction/dialogue.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/dialogue.cpp	2007-03-12 22:34:29 UTC (rev 26115)
+++ scummvm/trunk/engines/parallaction/dialogue.cpp	2007-03-12 22:45:50 UTC (rev 26116)
@@ -643,25 +643,16 @@
 
 }
 
-//	backups background mask and path
-//
-//
+
 void enterDialogue() {
 
-	_vm->_gfx->backupBackgroundMask(Gfx::kMask0);
-	_vm->_gfx->backupBackgroundPath(Gfx::kPath0);
-
 	return;
 }
 
-//	restores background mask and path
 //	rebuilds inventory
 //
 void exitDialogue() {
 
-	_vm->_gfx->restoreBackgroundMask(Gfx::kMask0);
-	_vm->_gfx->restoreBackgroundPath(Gfx::kPath0);
-
 	refreshInventory(_vm->_characterName);
 
 	return;

Modified: scummvm/trunk/engines/parallaction/graphics.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/graphics.cpp	2007-03-12 22:34:29 UTC (rev 26115)
+++ scummvm/trunk/engines/parallaction/graphics.cpp	2007-03-12 22:45:50 UTC (rev 26116)
@@ -35,11 +35,6 @@
 namespace Parallaction {
 
 
-byte *	_maskBackup;
-byte *	_pathBackup;
-
-
-
 uint16	_bgLayers[4];
 
 //
@@ -800,59 +795,6 @@
 }
 
 
-//	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 @@
 	_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;
 }
 

Modified: scummvm/trunk/engines/parallaction/graphics.h
===================================================================
--- scummvm/trunk/engines/parallaction/graphics.h	2007-03-12 22:34:29 UTC (rev 26115)
+++ scummvm/trunk/engines/parallaction/graphics.h	2007-03-12 22:45:50 UTC (rev 26116)
@@ -108,10 +108,6 @@
 	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);


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