Pārlūkot izejas kodu

Fix TextInput selection height.

Yanrishatum 6 gadi atpakaļ
vecāks
revīzija
2c6ee2832d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      h2d/TextInput.hx

+ 1 - 1
h2d/TextInput.hx

@@ -255,7 +255,7 @@ class TextInput extends Text {
 		super.set_font(f);
 		super.set_font(f);
 		cursorTile = h2d.Tile.fromColor(0xFFFFFF, 1, font.size);
 		cursorTile = h2d.Tile.fromColor(0xFFFFFF, 1, font.size);
 		cursorTile.dy = 2;
 		cursorTile.dy = 2;
-		selectionTile = h2d.Tile.fromColor(0x3399FF, 0, font.lineHeight);
+		selectionTile = h2d.Tile.fromColor(0x3399FF, 0, hxd.Math.ceil(font.lineHeight));
 		return f;
 		return f;
 	}
 	}