OSDN Git Service

行の高さは固定なので行ごとに高さを取得する必要はない
authorgdkhd812 <test@nnn.co.jp>
Sat, 19 Dec 2015 09:15:23 +0000 (14:45 +0530)
committergdkhd812 <test@nnn.co.jp>
Sat, 19 Dec 2015 09:15:23 +0000 (14:45 +0530)
Core/EditView.cs

index b892490..e17619f 100644 (file)
@@ -267,7 +267,8 @@ namespace FooEditEngine
 
                     DrawUpdateArea(i, pos.Y);
 
-                    pos.Y += this.LayoutLines.GetLayout(i).Height;
+                    //pos.Y += this.LayoutLines.GetLayout(i).Height;
+                    pos.Y += this.render.emSize.Height;
                 }
 
                 this.render.EndClipRect();
@@ -294,7 +295,8 @@ namespace FooEditEngine
 
                     this.render.DrawOneLine(this.LayoutLines, i, pos.X, pos.Y, selectRange);
 
-                    pos.Y += this.LayoutLines.GetLayout(i).Height;
+                    //pos.Y += this.LayoutLines.GetLayout(i).Height;
+                    pos.Y += this.render.emSize.Height;
                 }
 
                 this.render.EndClipRect();