Преглед изворни кода

Fixes wide runes not render well on NetDriver.

BDisp пре 3 година
родитељ
комит
e8fd8c503c
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      Terminal.Gui/ConsoleDrivers/NetDriver.cs

+ 3 - 3
Terminal.Gui/ConsoleDrivers/NetDriver.cs

@@ -1451,13 +1451,13 @@ namespace Terminal.Gui {
 				dirtyLine [row] = false;
 				System.Text.StringBuilder output = new System.Text.StringBuilder ();
 				for (int col = 0; col < cols; col++) {
-					if (contents [row, col, 2] != 1) {
-						continue;
-					}
 					if (Console.WindowHeight > 0 && !SetCursorPosition (col, row)) {
 						return;
 					}
 					for (; col < cols; col++) {
+						if (contents [row, col, 2] != 1) {
+							continue;
+						}
 						var attr = contents [row, col, 1];
 						if (attr != redrawAttr) {
 							output.Append (WriteAttributes (attr));