mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fixed VGA text buffer rendering non-ascii text incorrectly.
This commit is contained in:
parent
3b0f165c4f
commit
1041823d42
1 changed files with 2 additions and 2 deletions
|
@ -57,10 +57,10 @@ static TextChar EntryToTextChar(uint16_t entry)
|
|||
|
||||
static uint16_t CharToTextEntry(TextChar c)
|
||||
{
|
||||
return (uint16_t) c.c | (uint16_t) c.vgacolor << 8U;
|
||||
unsigned char uc = c.c;
|
||||
return (uint16_t) uc | (uint16_t) c.vgacolor << 8U;
|
||||
}
|
||||
|
||||
|
||||
bool VGATextBuffer::UsablePosition(TextPos pos) const
|
||||
{
|
||||
return pos.x < width && pos.y < height;
|
||||
|
|
Loading…
Reference in a new issue