mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-09 20:47:00 -04:00
Selection highlight debug for linux
this is not optimized but it'll do for now
This commit is contained in:
@@ -671,6 +671,7 @@ void TextValueEditor::redrawSelection(size_t old_selection_start_i, size_t old_s
|
||||
wxCaret* caret = editor().GetCaret();
|
||||
if (caret->IsVisible()) caret->Hide();
|
||||
}
|
||||
#ifdef __WXMSW__
|
||||
// Destroy the clientDC before reshowing the caret, prevent flicker on MSW
|
||||
{
|
||||
// Move selection
|
||||
@@ -702,6 +703,13 @@ void TextValueEditor::redrawSelection(size_t old_selection_start_i, size_t old_s
|
||||
drawWordListIndicators(dc, true);
|
||||
}
|
||||
}
|
||||
#else
|
||||
scroll_with_cursor = true;
|
||||
if (ensureCaretVisible()) {
|
||||
updateScrollbar();
|
||||
}
|
||||
redraw();
|
||||
#endif
|
||||
if (isCurrent()) {
|
||||
showCaret();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user