mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-04-24 10:39:51 +09:00
Entry: update selection caret when changing masked state
This commit is contained in:
@@ -350,6 +350,7 @@ namespace gsr {
|
|||||||
|
|
||||||
mgl::Text32 &active_text = masked ? masked_text : text;
|
mgl::Text32 &active_text = masked ? masked_text : text;
|
||||||
caret.offset_x = active_text.find_character_pos(caret.index).x - active_text.get_position().x;
|
caret.offset_x = active_text.find_character_pos(caret.index).x - active_text.get_position().x;
|
||||||
|
selection_start_caret.offset_x = active_text.find_character_pos(selection_start_caret.index).x - active_text.get_position().x;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Entry::is_masked() const {
|
bool Entry::is_masked() const {
|
||||||
|
|||||||
Reference in New Issue
Block a user