Use new beep function

This commit is contained in:
Chris Young 2019-05-10 21:34:22 +01:00
parent 97010ecef5
commit a5051c7128
2 changed files with 3 additions and 4 deletions

View File

@ -109,7 +109,6 @@ void ami_drag_save(struct Window *win)
{
ULONG which = WBO_NONE, type;
char path[1025], dpath[1025];
struct Screen *scrn = ami_gui_get_screen();
path[0] = 0; /* ensure path is terminated */
@ -135,7 +134,7 @@ void ami_drag_save(struct Window *win)
{
if(drag_save == GUI_SAVE_TEXT_SELECTION)
ami_drag_selection((struct gui_window *)drag_save_data);
else DisplayBeep(scrn);
else ami_gui_beep();
drag_save = 0;
drag_save_data = NULL;
@ -144,7 +143,7 @@ void ami_drag_save(struct Window *win)
if(path[0] == '\0')
{
DisplayBeep(scrn);
ami_gui_beep();
drag_save = 0;
drag_save_data = NULL;
return;

View File

@ -200,7 +200,7 @@ ami_history_global_drag_end(struct ami_corewindow *ami_cw, int x, int y)
}
if((ok == false) || (url == NULL)) {
DisplayBeep(ami_gui_get_screen());
ami_gui_beep();
} else if(url) {
if((gwin = ami_window_at_pointer(AMINS_WINDOW))) {
browser_window_navigate(ami_gui2_get_browser_window(gwin),