mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-01 00:12:59 +00:00
don't convert to LE, dataFileHeader is in native endianess
svn-id: r8825
This commit is contained in:
parent
41912bc685
commit
9091a516a2
10
sky/text.cpp
10
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user