mirror of
https://github.com/cy384/ssheven.git
synced 2026-05-21 06:45:34 -06:00
properly invalidate old area of selection on mouse move
This commit is contained in:
parent
cad648bb4a
commit
887237e0c7
1 changed files with 3 additions and 0 deletions
|
|
@ -157,6 +157,9 @@ void update_selection_end(void)
|
|||
// only damage the selection if the mouse has moved outside of the last cell
|
||||
if (last_mouse_cell_x != new_mouse_cell_x || last_mouse_cell_y != new_mouse_cell_y)
|
||||
{
|
||||
// damage the old selection
|
||||
damage_selection();
|
||||
|
||||
con.select_end_x = new_mouse_cell_x;
|
||||
con.select_end_y = new_mouse_cell_y;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue