1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-02 19:56:13 +01:00

Apply some refactoring

This commit is contained in:
Christian F. Coors
2017-10-03 00:00:32 +02:00
committed by Michael Steenbeek
parent 386a399a51
commit 06afeeda9a
60 changed files with 221 additions and 292 deletions

View File

@@ -285,9 +285,8 @@ void draw_string_centred_raw(rct_drawpixelinfo *dpi, sint32 x, sint32 y, sint32
const utf8 *ch = text;
const utf8 *nextCh = 0;
sint32 codepoint = 0;
while ((codepoint = utf8_get_next(ch, (const utf8**)&nextCh)) != 0) {
while ((utf8_get_next(ch, &nextCh)) != 0) {
ch = nextCh;
}
text = (char*)(ch + 1);