Explorar o código

Merge branch 'master' into 'master'

Set the line height correctly, for e.g. 4k displays (i.e. when dpi is not 72)

See merge request Bepsi/NTERA!2
Bepsi %!s(int64=6) %!d(string=hai) anos
pai
achega
172b15b0bf
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      NTERA/Console/ConsoleRenderer.cs

+ 1 - 0
NTERA/Console/ConsoleRenderer.cs

@@ -25,6 +25,7 @@ namespace NTERA.Console
 		public ConsoleRenderer()
 		{
 			Items.Add(new List<IRenderItem>());
+			LineHeight = (int)(new Font("MS UI Gothic", 12)).GetHeight();
 		}
 
 		public void WriteItem(IRenderItem item)