mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 18:47:44 +00:00
Minor Terminal tweaks.
This commit is contained in:
parent
d14ec951ea
commit
a8e42bacf4
2 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@ void Terminal::create_window()
|
||||||
auto& font = Font::defaultFont();
|
auto& font = Font::defaultFont();
|
||||||
|
|
||||||
m_pixel_width = m_columns * font.glyphWidth() + m_inset * 2;
|
m_pixel_width = m_columns * font.glyphWidth() + m_inset * 2;
|
||||||
m_pixel_height = (m_rows * (font.glyphHeight() + m_line_spacing)) + (m_inset * 2);
|
m_pixel_height = (m_rows * (font.glyphHeight() + m_line_spacing)) + (m_inset * 2) - m_line_spacing;
|
||||||
|
|
||||||
GUI_CreateWindowParameters params;
|
GUI_CreateWindowParameters params;
|
||||||
params.rect = { { 300, 300 }, { m_pixel_width, m_pixel_height } };
|
params.rect = { { 300, 300 }, { m_pixel_width, m_pixel_height } };
|
||||||
|
|
|
@ -97,7 +97,7 @@ void Painter::draw_glyph(const Point& point, char ch, Color color)
|
||||||
{
|
{
|
||||||
auto* bitmap = font().glyphBitmap(ch);
|
auto* bitmap = font().glyphBitmap(ch);
|
||||||
if (!bitmap) {
|
if (!bitmap) {
|
||||||
dbgprintf("Font doesn't have 0x%02x ('%c')\n", ch, ch);
|
dbgprintf("Font doesn't have 0x%02x ('%c')\n", (byte)ch, ch);
|
||||||
ASSERT_NOT_REACHED();
|
ASSERT_NOT_REACHED();
|
||||||
}
|
}
|
||||||
int x = point.x();
|
int x = point.x();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue