• R/O
  • HTTP
  • SSH
  • HTTPS

FooEditEngine: Commit


Commit MetaInfo

Revision2271d2b3336e0976d6c00d54c09ff006474e7c18 (tree)
Time2021-01-06 19:19:28
Authortest <test@yaho...>
Commitertest

Log Message

WPF版でレタリングが無駄に遅い箇所があった

Change Summary

Incremental Difference

--- a/WPF/FooEditEngine/Direct2D/D2DRender.cs
+++ b/WPF/FooEditEngine/Direct2D/D2DRender.cs
@@ -174,22 +174,20 @@ namespace FooEditEngine.WPF
174174
175175 public void DrawOneLine(Document doc, LineToIndexTable lti, int row, double x, double y)
176176 {
177- PreDrawOneLineHandler PreDrawOneLine = null;
178-
179- if (InputMethod.Current.ImeState == InputMethodState.On)
180- PreDrawOneLine = this.DrawImeConversionLine;
181-
182177 base.DrawOneLine(doc,
183178 lti,
184179 row,
185180 x,
186181 y,
187- PreDrawOneLine
182+ this.DrawImeConversionLine
188183 );
189184 }
190185
191186 private void DrawImeConversionLine(MyTextLayout layout, LineToIndexTable lti, int row, double x, double y)
192187 {
188+ if (InputMethod.Current.ImeState != InputMethodState.On)
189+ return;
190+
193191 using (Unlocker locker = this.store.LockDocument(false))
194192 {
195193 int lineIndex = lti.GetIndexFromLineNumber(row);
Show on old repository browser