From 0e28071fa3d7af6cae3d01fa979dfed48a5a0b35 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 5 Jul 2014 17:59:54 +0100 Subject: Moved forced throbber redraw to a scheduled callback --- amiga/theme.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'amiga/theme.c') diff --git a/amiga/theme.c b/amiga/theme.c index 29c72574b..a04efe8bc 100644 --- a/amiga/theme.c +++ b/amiga/theme.c @@ -36,11 +36,12 @@ #include "amiga/bitmap.h" #include "amiga/drag.h" -#include "desktop/browser_private.h" -#include "utils/nsoption.h" +#include "amiga/schedule.h" #include "amiga/theme.h" +#include "desktop/browser_private.h" #include "desktop/searchweb.h" #include "utils/messages.h" +#include "utils/nsoption.h" #include "utils/utils.h" struct BitMap *throbber = NULL; @@ -519,3 +520,14 @@ void ami_update_throbber(struct gui_window_2 *g, bool redraw) // BLITA_UseSrcAlpha,TRUE, TAG_DONE); } + +static void ami_throbber_redraw(void *gwin) +{ + ami_update_throbber((struct gui_window_2 *)gwin, true); +} + +void ami_throbber_redraw_schedule(int t, struct gui_window_2 *gwin) +{ + ami_schedule(t, ami_throbber_redraw, (void *)gwin); +} + -- cgit v1.2.3