[Scummvm-cvs-logs] SF.net SVN: scummvm: [22622] scummvm/trunk/engines/kyra

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Thu May 25 01:03:02 CEST 2006


Revision: 22622
Author:   lordhoto
Date:     2006-05-25 01:02:17 -0700 (Thu, 25 May 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22622&view=rev

Log Message:
-----------
- Adds some _quitFlag checks
- deletes Screen::drawPixel

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/kyra.cpp
    scummvm/trunk/engines/kyra/kyra3.cpp
    scummvm/trunk/engines/kyra/screen.cpp
    scummvm/trunk/engines/kyra/screen.h
Modified: scummvm/trunk/engines/kyra/kyra.cpp
===================================================================
--- scummvm/trunk/engines/kyra/kyra.cpp	2006-05-25 07:53:58 UTC (rev 22621)
+++ scummvm/trunk/engines/kyra/kyra.cpp	2006-05-25 08:02:17 UTC (rev 22622)
@@ -575,7 +575,7 @@
 }
 
 void KyraEngine::delayUntil(uint32 timestamp, bool updateTimers, bool update, bool isMainLoop) {
-	while (_system->getMillis() < timestamp) {
+	while (_system->getMillis() < timestamp && !_quitFlag) {
 		if (updateTimers)
 			updateGameTimers();
 		if (timestamp - _system->getMillis() >= 10)
@@ -661,10 +661,10 @@
 		if (_skipFlag && !_abortIntroFlag && !queryGameFlag(0xFE))
 			_skipFlag = false;
 			
-		if (amount > 0 && !_skipFlag) {
+		if (amount > 0 && !_skipFlag && !_quitFlag) {
 			_system->delayMillis((amount > 10) ? 10 : amount);
 		}
-	} while (!_skipFlag && _system->getMillis() < start + amount);
+	} while (!_skipFlag && _system->getMillis() < start + amount && !_quitFlag);
 	
 }
 

Modified: scummvm/trunk/engines/kyra/kyra3.cpp
===================================================================
--- scummvm/trunk/engines/kyra/kyra3.cpp	2006-05-25 07:53:58 UTC (rev 22621)
+++ scummvm/trunk/engines/kyra/kyra3.cpp	2006-05-25 08:02:17 UTC (rev 22622)
@@ -284,8 +284,8 @@
 	_screen->drawClippedLine(x, y, x+w, y, colorTable[2]);
 	_screen->drawClippedLine(x, y, x, y+h, colorTable[2]);
 	
-	_screen->drawPixel(x, y+h, colorTable[3]);
-	_screen->drawPixel(x+w, y, colorTable[3]);
+	_screen->setPagePixel(_screen->_curPage, x, y+h, colorTable[3]);
+	_screen->setPagePixel(_screen->_curPage, x+w, y, colorTable[3]);
 }
 
 void KyraEngine_v3::gui_printString(const char *format, int x, int y, int col1, int col2, int flags, ...) {

Modified: scummvm/trunk/engines/kyra/screen.cpp
===================================================================
--- scummvm/trunk/engines/kyra/screen.cpp	2006-05-25 07:53:58 UTC (rev 22621)
+++ scummvm/trunk/engines/kyra/screen.cpp	2006-05-25 08:02:17 UTC (rev 22622)
@@ -494,12 +494,6 @@
 	drawClippedLine(x1, y2, x2, y2, color);
 }
 
-void Screen::drawPixel(int x, int y, int color, int pageNum) {
-	debugC(9, kDebugLevelScreen, "Screen::drawPixel(%i, %i, %i, %i)", x, y, color, pageNum);
-	uint8 *dst = getPagePtr((pageNum != -1) ? pageNum : 0) + y * SCREEN_W + x;
-	*dst = color;
-}
-
 void Screen::drawShadedBox(int x1, int y1, int x2, int y2, int color1, int color2) {
 	debugC(9, kDebugLevelScreen, "Screen::drawShadedBox(%i, %i, %i, %i, %i, %i)", x1, y1, x2, y2, color1, color2);
 	assert(x1 > 0 && y1 > 0);

Modified: scummvm/trunk/engines/kyra/screen.h
===================================================================
--- scummvm/trunk/engines/kyra/screen.h	2006-05-25 07:53:58 UTC (rev 22621)
+++ scummvm/trunk/engines/kyra/screen.h	2006-05-25 08:02:17 UTC (rev 22622)
@@ -115,7 +115,6 @@
 	void drawClippedLine(int x1, int y1, int x2, int y2, int color);
 	void drawShadedBox(int x1, int y1, int x2, int y2, int color1, int color2);
 	void drawBox(int x1, int y1, int x2, int y2, int color);
-	void drawPixel(int x, int y, int color, int pageNum = -1);
 	void setAnimBlockPtr(int size);
 	void setTextColorMap(const uint8 *cmap);
 	void setTextColor(const uint8 *cmap, int a, int b);


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