mirror of https://github.com/cy384/ssheven.git
properly invalidate old area of selection on mouse move
This commit is contained in:
parent
cad648bb4a
commit
887237e0c7
|
@ -157,6 +157,9 @@ void update_selection_end(void)
|
||||||
// only damage the selection if the mouse has moved outside of the last cell
|
// 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)
|
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_x = new_mouse_cell_x;
|
||||||
con.select_end_y = new_mouse_cell_y;
|
con.select_end_y = new_mouse_cell_y;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue