Skip to content

Commit

Permalink
Merge pull request #342 from rasberryrabbit/master
Browse files Browse the repository at this point in the history
Fix draw caret.
  • Loading branch information
Alexey-T authored Aug 15, 2024
2 parents b0937b1 + d5d45a2 commit 3a6d456
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions atsynedit/atsynedit_adapter_windowsime.pas
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,10 @@ procedure TATAdapterWindowsIME.CompFormPaint(Sender: TObject);
for i:=0 to position-1 do
s:=s+buffer[i];
cm:=CompForm.Canvas.TextExtent(s);
cm.cy:=tm.cy+2;
CompForm.Canvas.Pen.Color:=clInfoText;
CompForm.Canvas.Pen.Mode:=pmNotXor;
CompForm.Canvas.Line(cm.cx ,0,cm.cx ,cm.cy+2);
CompForm.Canvas.Line(cm.cx+1,0,cm.cx+1,cm.cy+2);
CompForm.Canvas.Line(cm.cx ,0,cm.cx ,cm.cy);
CompForm.Canvas.Line(cm.cx+1,0,cm.cx+1,cm.cy);
end;

procedure TATAdapterWindowsIME.UpdateCandidatePos(Sender: TObject);
Expand Down

0 comments on commit 3a6d456

Please sign in to comment.