1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +00:00

Kernel/Console: Use 8x16 character font bitmap instead of old 8x8 bitmap

This in turn makes the built-in kernel console much more nicer to look
into, so let's remove the support for 8x8 bitmap and instead add 8x16
font bitmap.
This commit is contained in:
Liav A 2022-05-05 21:35:00 +03:00 committed by Linus Groh
parent 3a2118cc7d
commit 969e5fa163
2 changed files with 158 additions and 151 deletions

View file

@ -18,8 +18,8 @@ public:
virtual size_t bytes_per_base_glyph() const override;
virtual size_t chars_per_line() const override;
virtual size_t max_column() const override { return m_width / 8; }
virtual size_t max_row() const override { return m_height / 8; }
virtual size_t max_column() const override { return m_width / m_pixels_per_column; }
virtual size_t max_row() const override { return m_height / m_pixels_per_row; }
virtual bool is_hardware_paged_capable() const override { return false; }
virtual bool has_hardware_cursor() const override { return false; }
@ -47,6 +47,10 @@ protected:
virtual u8* framebuffer_data() = 0;
size_t framebuffer_pitch() const { return m_pitch; }
virtual void clear_glyph(size_t x, size_t y);
size_t const m_pixels_per_column { 8 };
size_t const m_pixels_per_row { 16 };
size_t m_pitch;
};