diff options
author | rubidium <rubidium@openttd.org> | 2010-11-16 12:18:35 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-11-16 12:18:35 +0000 |
commit | b00858473c9f4908042fc85c9787c2aad263f9bd (patch) | |
tree | 647944b546a3d5a7a826e89cebe6ec6be6524f72 | |
parent | d7aa9a6bd111abb562e5ff3852e57845dda75d80 (diff) | |
download | openttd-b00858473c9f4908042fc85c9787c2aad263f9bd.tar.xz |
(svn r21206) -Document: that, and why string code 9A 02 (skip/ignore next colour code) is not implemented
-rw-r--r-- | src/newgrf_text.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp index 3d7a1ad39..b851546a7 100644 --- a/src/newgrf_text.cpp +++ b/src/newgrf_text.cpp @@ -309,6 +309,13 @@ char *TranslateTTDPatchCodes(uint32 grfid, uint8 language_id, const char *str, i switch (*str++) { case 0x00: // FALL THROUGH case 0x01: d += Utf8Encode(d, SCC_NEWGRF_PRINT_QWORD_CURRENCY); break; + /* 0x02: ignore next colour byte is not supported. It works on the final + * string and as such hooks into the string drawing routine. At that + * point many things already happened, such as splitting up of strings + * when drawn over multiple lines or right-to-left translations, which + * make the behaviour peculiar, e.g. only happening at specific width + * of windows. Or we need to add another pass over the string to just + * support this. As such it is not implemented in OpenTTD. */ case 0x03: { uint16 tmp = ((uint8)*str++); tmp |= ((uint8)*str++) << 8; |