[Scummvm-cvs-logs] CVS: scummvm/sky text.cpp,1.41,1.42

Max Horn fingolfin at users.sourceforge.net
Sun Jul 6 17:23:16 CEST 2003


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

Modified Files:
	text.cpp 
Log Message:
don't convert to LE, dataFileHeader is in native endianess

Index: text.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/text.cpp,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- text.cpp	7 Jul 2003 00:14:16 -0000	1.41
+++ text.cpp	7 Jul 2003 00:22:41 -0000	1.42
@@ -286,11 +286,11 @@
 	curPos += bytesToClear;
 
 	//make the header
-	((struct dataFileHeader *)curDest)->s_width = TO_LE_16(_dtLineWidth);
-	((struct dataFileHeader *)curDest)->s_height = TO_LE_16((uint16)(_charHeight * _dtLines));
-	((struct dataFileHeader *)curDest)->s_sp_size = TO_LE_16((uint16)(_dtLineWidth * _charHeight * _dtLines));
-	((struct dataFileHeader *)curDest)->s_offset_x = TO_LE_16(0);
-	((struct dataFileHeader *)curDest)->s_offset_y = TO_LE_16(0);
+	((struct dataFileHeader *)curDest)->s_width = _dtLineWidth;
+	((struct dataFileHeader *)curDest)->s_height = _charHeight * _dtLines;
+	((struct dataFileHeader *)curDest)->s_sp_size = _dtLineWidth * _charHeight * _dtLines;
+	((struct dataFileHeader *)curDest)->s_offset_x = 0;
+	((struct dataFileHeader *)curDest)->s_offset_y = 0;
 	
 	//reset position
 	curPos = textPtr;





More information about the Scummvm-git-logs mailing list