Terminal: Tighten the glyph rects.

This makes the cursor look a bit nicer.
This commit is contained in:
Andreas Kling 2019-01-17 16:34:37 +01:00
parent e9e57c5f65
commit 135ff48bb9
Notes: sideshowbarker 2024-07-19 16:00:46 +09:00

View File

@ -404,7 +404,7 @@ Rect Terminal::glyph_rect(word row, word column)
{
int y = row * m_line_height;
int x = column * font().glyph_width();
return { x + m_inset, y + m_inset, font().glyph_width(), m_line_height };
return { x + m_inset, y + m_inset, font().glyph_width(), font().glyph_height() };
}
inline Terminal::Attribute& Terminal::attribute_at(word row, word column)