1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 08:17:45 +00:00

Minor Terminal tweaks.

This commit is contained in:
Andreas Kling 2019-01-15 07:57:30 +01:00
parent d14ec951ea
commit a8e42bacf4
2 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@ void Terminal::create_window()
auto& font = Font::defaultFont();
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;
params.rect = { { 300, 300 }, { m_pixel_width, m_pixel_height } };

View file

@ -97,7 +97,7 @@ void Painter::draw_glyph(const Point& point, char ch, Color color)
{
auto* bitmap = font().glyphBitmap(ch);
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();
}
int x = point.x();