* Changes the palette so that the next character changes colour */
| 248 | * Changes the palette so that the next character changes colour |
| 249 | */ |
| 250 | static void colourCharacter(TextColour colour, bool withOutline, TextColours& textPalette) |
| 251 | { |
| 252 | auto mapping = getTextColourMapping(colour); |
| 253 | |
| 254 | if (!withOutline) |
| 255 | { |
| 256 | mapping.sunnyOutline = PaletteIndex::transparent; |
| 257 | mapping.shadowOutline = PaletteIndex::transparent; |
| 258 | } |
| 259 | |
| 260 | textPalette = mapping; |
| 261 | } |
| 262 | |
| 263 | /** |
| 264 | * Changes the palette so that the next character changes colour |
no test coverage detected