mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57: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();
|
wxCaret* caret = editor().GetCaret();
|
||||||
if (caret->IsVisible()) caret->Hide();
|
if (caret->IsVisible()) caret->Hide();
|
||||||
}
|
}
|
||||||
|
#ifdef __WXMSW__
|
||||||
// Destroy the clientDC before reshowing the caret, prevent flicker on MSW
|
// Destroy the clientDC before reshowing the caret, prevent flicker on MSW
|
||||||
{
|
{
|
||||||
// Move selection
|
// Move selection
|
||||||
@@ -702,6 +703,13 @@ void TextValueEditor::redrawSelection(size_t old_selection_start_i, size_t old_s
|
|||||||
drawWordListIndicators(dc, true);
|
drawWordListIndicators(dc, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
scroll_with_cursor = true;
|
||||||
|
if (ensureCaretVisible()) {
|
||||||
|
updateScrollbar();
|
||||||
|
}
|
||||||
|
redraw();
|
||||||
|
#endif
|
||||||
if (isCurrent()) {
|
if (isCurrent()) {
|
||||||
showCaret();
|
showCaret();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user