Skip to content

Commit

Permalink
Caret (text cursor) follow windows settings
Browse files Browse the repository at this point in the history
  • Loading branch information
lededev committed Nov 11, 2024
1 parent f516cfa commit cdebed1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Externals/crystaledit/editlib/ccrystaltextview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2870,7 +2870,11 @@ UpdateCaret ()
CreateSolidCaret (nCaretWidth, nCaretHeight);
}
else
CreateSolidCaret (2, nCaretHeight);
{
DWORD caretWidth = 2;
SystemParametersInfo (SPI_GETCARETWIDTH, 0, &caretWidth, 0);
CreateSolidCaret (caretWidth, nCaretHeight);
}

SetCaretPos (TextToClient (m_ptCursorPos));
ShowCaret ();
Expand Down

0 comments on commit cdebed1

Please sign in to comment.