diff --git a/vga/render_text.c b/vga/render_text.c index 2799587..e84911e 100644 --- a/vga/render_text.c +++ b/vga/render_text.c @@ -42,9 +42,9 @@ static inline uint_fast8_t char_text_bits(uint_fast8_t ch, uint_fast8_t glyph_li ch = (ch & 0x3f) | 0x80; } - bits = character_rom[((uint_fast16_t)ch << 3) | glyph_line] & 0x7f; + bits = character_rom[((uint_fast16_t)ch << 3) | glyph_line]; - return bits ^ invert; + return (bits ^ invert) & 0x7f; } void DELAYED_COPY_CODE(render_text)() {