aboutsummaryrefslogtreecommitdiff
path: root/sky
diff options
context:
space:
mode:
authorMax Horn2003-07-07 00:22:41 +0000
committerMax Horn2003-07-07 00:22:41 +0000
commit9091a516a28243a89a03e3ba17cb9bf6c1ab2b43 (patch)
tree84b05e9088bac4518602fcbe2fd92d91ad54dd5f /sky
parent41912bc68578b5e68805f01fc36e79d91691c8cd (diff)
downloadscummvm-rg350-9091a516a28243a89a03e3ba17cb9bf6c1ab2b43.tar.gz
scummvm-rg350-9091a516a28243a89a03e3ba17cb9bf6c1ab2b43.tar.bz2
scummvm-rg350-9091a516a28243a89a03e3ba17cb9bf6c1ab2b43.zip
don't convert to LE, dataFileHeader is in native endianess
svn-id: r8825
Diffstat (limited to 'sky')
-rw-r--r--sky/text.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/sky/text.cpp b/sky/text.cpp
index cbd95c0a2e..d5f1e4a3cd 100644
--- a/sky/text.cpp
+++ b/sky/text.cpp
@@ -286,11 +286,11 @@ displayText_t SkyText::displayText(char *textPtr, uint8 *dest, bool centre, uint
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;