870 |
int bgcolour, int fgcolour, uint8 *text, uint8 length) |
int bgcolour, int fgcolour, uint8 *text, uint8 length) |
871 |
{ |
{ |
872 |
FONTGLYPH *glyph; |
FONTGLYPH *glyph; |
873 |
int i, offset; |
short offset; |
874 |
|
int i; |
875 |
|
|
876 |
SET_FOREGROUND(bgcolour); |
SET_FOREGROUND(bgcolour); |
877 |
|
|
893 |
{ |
{ |
894 |
offset = text[++i]; |
offset = text[++i]; |
895 |
if (offset & 0x80) |
if (offset & 0x80) |
896 |
offset = ((offset & 0x7f) << 8) | text[++i]; |
{ |
897 |
|
if (offset == 0x80) |
898 |
|
{ |
899 |
|
/* next two bytes, little-endian */ |
900 |
|
offset = text[++i]; |
901 |
|
offset |= text[++i] << 8; |
902 |
|
} |
903 |
|
else |
904 |
|
{ |
905 |
|
offset = (offset & 0x7f) << 8; |
906 |
|
offset |= text[++i]; |
907 |
|
} |
908 |
|
} |
909 |
|
|
910 |
if (flags & TEXT2_VERTICAL) |
if (flags & TEXT2_VERTICAL) |
911 |
y += offset; |
y += offset; |