1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 20:13:07 +01:00

Undo change to Drawing.String.cpp

This commit is contained in:
Ted John
2022-05-19 21:43:06 +01:00
parent af2db16914
commit fe2e054f53

View File

@@ -826,8 +826,6 @@ static void ttf_process_string_literal(rct_drawpixelinfo* dpi, std::string_view
#ifndef NO_TTF
else
{
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
CodepointView codepoints(text);
std::optional<size_t> ttfRunIndex;
for (auto it = codepoints.begin(); it != codepoints.end(); it++)
@@ -861,7 +859,6 @@ static void ttf_process_string_literal(rct_drawpixelinfo* dpi, std::string_view
auto len = text.size() - *ttfRunIndex;
ttf_draw_string_raw_ttf(dpi, text.substr(ttfRunIndex.value(), len), info);
}
# pragma GCC diagnostic pop
}
#endif // NO_TTF
}