TextConsole: decoder -> utf8_decoder
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6389099808
commit
ffd3385d0d
@ -23,7 +23,7 @@ static constexpr u32 FONT_WIDTH = 8;
|
||||
static u32 g_x_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)
|
||||
{
|
||||
@ -123,10 +123,10 @@ namespace TextConsole
|
||||
// FIXME: Should this function propagate errors?
|
||||
void putchar(char c)
|
||||
{
|
||||
auto rc = decoder.feed(c);
|
||||
auto rc = utf8_decoder.feed(c);
|
||||
if (rc.has_error())
|
||||
{
|
||||
decoder.reset();
|
||||
utf8_decoder.reset();
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user