diff --git a/amiga/gui.c b/amiga/gui.c index d67310d08..5dcb98fba 100644 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -3871,8 +3871,10 @@ void gui_window_set_title(struct gui_window *g, const char *title) } } -static void ami_redraw_callback(struct gui_window_2 *gwin) +static void ami_redraw_callback(void *p) { + struct gui_window_2 *gwin = (struct gui_window_2 *)p; + if(gwin->redraw_required || gwin->bw->reformat_pending) { ami_do_redraw(gwin); } @@ -3886,6 +3888,13 @@ static void ami_redraw_callback(struct gui_window_2 *gwin) } } +/** + * Schedule a redraw of the browser window - Amiga-specific function + * + * \param gwin a struct gui_window_2 + * \param full_redraw set to true to schedule a full redraw, + should only be set to false when called from gui_window_update_box() + */ void ami_schedule_redraw(struct gui_window_2 *gwin, bool full_redraw) { schedule(0, ami_redraw_callback, gwin); diff --git a/amiga/schedule.h b/amiga/schedule.h index 50071e5a8..3eddc8913 100755 --- a/amiga/schedule.h +++ b/amiga/schedule.h @@ -19,7 +19,7 @@ #ifndef AMIGA_SCHEDULE_H #define AMIGA_SCHEDULE_H #include - +#include "utils/schedule.h" #include "amiga/os3support.h" struct Device *TimerBase;