[Scummvm-cvs-logs] SF.net SVN: scummvm:[47851] scummvm/trunk/engines/gob

strangerke at users.sourceforge.net strangerke at users.sourceforge.net
Wed Feb 3 13:57:47 CET 2010


Revision: 47851
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47851&view=rev
Author:   strangerke
Date:     2010-02-03 12:57:47 +0000 (Wed, 03 Feb 2010)

Log Message:
-----------
Fascination - Cleanup: suppress some noisy debug output, suppress some obsolete and commented code.

Modified Paths:
--------------
    scummvm/trunk/engines/gob/draw.cpp
    scummvm/trunk/engines/gob/hotspots.cpp

Modified: scummvm/trunk/engines/gob/draw.cpp
===================================================================
--- scummvm/trunk/engines/gob/draw.cpp	2010-02-03 11:02:43 UTC (rev 47850)
+++ scummvm/trunk/engines/gob/draw.cpp	2010-02-03 12:57:47 UTC (rev 47851)
@@ -540,8 +540,6 @@
 
 	blitInvalidated();
 
-//	_vm->_video->dirtyRectsAll();
-
 	for (int i = 0; i < 10; i++) {
 		t[i]  = -1;
 		t2[i] = -1;
@@ -643,7 +641,6 @@
 }
 
 bool Draw::winOverlap(int16 idWin1, int16 idWin2) {
-	warning("winOverlap %d %d", idWin1, idWin2);
 	if ((_fascinWin[idWin1].left + _fascinWin[idWin1].width  <= _fascinWin[idWin2].left) ||
 		(_fascinWin[idWin2].left + _fascinWin[idWin2].width  <= _fascinWin[idWin1].left) ||
 		(_fascinWin[idWin1].top  + _fascinWin[idWin1].height <= _fascinWin[idWin2].top ) ||
@@ -654,7 +651,6 @@
 }
 
 void Draw::closeWin(int16 i) {
-	warning("closeWin %d", i);
 	if (_fascinWin[i].id == -1)
 		return;
 
@@ -709,9 +705,6 @@
 							_fascinWin[id].left + _fascinWin[id].width  - 1,
 							_fascinWin[id].top  + _fascinWin[id].height - 1,
 							_fascinWin[id].left & 7, 0, 0);
-//	dirtiedRect(_destSurface, _fascinWin[id].left, 0,
-//				_fascinWin[id].left + _fascinWin[id].width  - 1,
-//				_fascinWin[id].top  + _fascinWin[id].height - 1);
 }
 
 void Draw::winMove(int16 id) {
@@ -789,9 +782,7 @@
 	_cursorY = _vm->_global->_inter_mouseY;
 
 	do {
-		// TODO: Usage of checkKeys to be confirmed. A simple refresh of the mouse buttons is required
 		_vm->_game->checkKeys(&_vm->_global->_inter_mouseX, &_vm->_global->_inter_mouseY, &_vm->_game->_mouseButtons, 1);
-//		_vm->_util->getMouseState(&_vm->_global->_inter_mouseX, &_vm->_global->_inter_mouseY, &_vm->_game->_mouseButtons);
 
 		if (_vm->_global->_inter_mouseX != _cursorX || _vm->_global->_inter_mouseY != _cursorY) {
 			if (_vm->_global->_inter_mouseX < minX) {
@@ -833,7 +824,6 @@
 	int8 matchNum = 0;
 	int16 bestMatch = -1;
 
-	warning("handleCurWin");
 	if ((_vm->_game->_mouseButtons != 1) || ((_vm->_draw->_renderFlags & 128) == 0))
 		return 0;
 
@@ -1294,7 +1284,6 @@
 int16 Draw::isOverWin(int16 &dx, int16 &dy) {
 	int16 bestMatch = -1;
 
-	warning("isOverWin");
 	if ((_vm->_draw->_renderFlags & 128) == 0)
 		return -1;
 

Modified: scummvm/trunk/engines/gob/hotspots.cpp
===================================================================
--- scummvm/trunk/engines/gob/hotspots.cpp	2010-02-03 11:02:43 UTC (rev 47850)
+++ scummvm/trunk/engines/gob/hotspots.cpp	2010-02-03 12:57:47 UTC (rev 47851)
@@ -555,12 +555,9 @@
 	int16 dy = 0;
 	int16 winId = -1;
 
-	if (_vm->getGameType() == kGameTypeFascination) {
+	if (_vm->getGameType() == kGameTypeFascination)
 		winId = _vm->_draw->isOverWin(dx, dy);
 
-		warning("checkmouse %d - %d %d", winId, dx, dy);
-	}
-
 	if (winId < 0) {
 		winId = 0;
 		dx = 0;


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