[Scummvm-cvs-logs] CVS: scummvm/sky logic.cpp,1.68,1.69

Robert G?ffringmann lavosspawn at users.sourceforge.net
Sat May 31 17:48:06 CEST 2003


Update of /cvsroot/scummvm/scummvm/sky
In directory sc8-pr-cvs1:/tmp/cvs-serv3881/sky

Modified Files:
	logic.cpp 
Log Message:
fixed screen coordinates bug for stdSpeak

Index: logic.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/logic.cpp,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -d -r1.68 -r1.69
--- logic.cpp	1 Jun 2003 00:02:51 -0000	1.68
+++ logic.cpp	1 Jun 2003 00:47:57 -0000	1.69
@@ -2078,6 +2078,7 @@
 	//now form the text sprite
 	struct lowTextManager_t textInfo;
 	textInfo = _skyText->lowTextManager(textNum, FIXED_TEXT_WIDTH, 0, (uint8)target->extCompact->spColour, true);    
+	Compact *textCompact = SkyState::fetchCompact(textInfo.compactNum);
 	target->extCompact->spTextId = textInfo.compactNum;	//So we know what text to kill
 	byte *textGfx = textInfo.textData;
 
@@ -2103,13 +2104,13 @@
 			xPos -= FIXED_TEXT_WIDTH;
 		}
 			
-		_compact->xcood = xPos;
+		textCompact->xcood = xPos;
 		uint16 yPos = target->ycood + ((struct dataFileHeader *)targetGfx)->s_offset_y - 6 - ((struct dataFileHeader *)textGfx)->s_height;
 		
 		if (yPos < TOP_LEFT_Y)
 			yPos = TOP_LEFT_Y;
 
-		_compact->ycood = yPos;
+		textCompact->ycood = yPos;
 		//_logicTalkButtonRelease = 1;  
 			
 	} else {





More information about the Scummvm-git-logs mailing list