mirror of https://github.com/cy384/ssheven.git
clear selection when resizing window
This commit is contained in:
parent
df1e5769e9
commit
97b5bd1453
|
@ -22,3 +22,5 @@ void mouse_click(Point p, int click);
|
||||||
void update_console_colors(void);
|
void update_console_colors(void);
|
||||||
|
|
||||||
size_t get_selection(char** selection);
|
size_t get_selection(char** selection);
|
||||||
|
|
||||||
|
void clear_selection(void);
|
||||||
|
|
|
@ -441,6 +441,8 @@ int process_menu_select(int32_t result)
|
||||||
|
|
||||||
void resize_con_window(WindowPtr eventWin, EventRecord event)
|
void resize_con_window(WindowPtr eventWin, EventRecord event)
|
||||||
{
|
{
|
||||||
|
clear_selection();
|
||||||
|
|
||||||
// TODO: put this somewhere else
|
// TODO: put this somewhere else
|
||||||
// limits on window size
|
// limits on window size
|
||||||
// top = min vertical
|
// top = min vertical
|
||||||
|
|
Loading…
Reference in New Issue