From: gdkhd812 Date: Sat, 19 Dec 2015 09:15:23 +0000 (+0530) Subject: 行の高さは固定なので行ごとに高さを取得する必要はない X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ce526cc5ed54756be0c76302da0fec60888453df;p=fooeditengine%2FFooEditEngine.git 行の高さは固定なので行ごとに高さを取得する必要はない --- diff --git a/Core/EditView.cs b/Core/EditView.cs index b892490..e17619f 100644 --- a/Core/EditView.cs +++ b/Core/EditView.cs @@ -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();