瀏覽代碼

Terminal: Tighten the glyph rects.

This makes the cursor look a bit nicer.
Andreas Kling 6 年之前
父節點
當前提交
135ff48bb9
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)