Quellcode durchsuchen

Terminal: Tighten the glyph rects.

This makes the cursor look a bit nicer.
Andreas Kling vor 6 Jahren
Ursprung
Commit
135ff48bb9
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      Terminal/Terminal.cpp

+ 1 - 1
Terminal/Terminal.cpp

@@ -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)