TextConsole: decoder -> utf8_decoder
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2022-12-18 14:42:53 +01:00
parent 6389099808
commit ffd3385d0d
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -23,7 +23,7 @@ static constexpr u32 FONT_WIDTH = 8;
static u32 g_x_position = 0; static u32 g_x_position = 0;
static u32 g_y_position = 0; static u32 g_y_position = 0;
static Utf8StateDecoder decoder; static Utf8StateDecoder utf8_decoder;
static void putwchar_at(wchar_t c, u32 x, u32 y) static void putwchar_at(wchar_t c, u32 x, u32 y)
{ {
@ -123,10 +123,10 @@ namespace TextConsole
// FIXME: Should this function propagate errors? // FIXME: Should this function propagate errors?
void putchar(char c) void putchar(char c)
{ {
auto rc = decoder.feed(c); auto rc = utf8_decoder.feed(c);
if (rc.has_error()) if (rc.has_error())
{ {
decoder.reset(); utf8_decoder.reset();
return; return;
} }