summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--amiga/theme.c16
-rw-r--r--amiga/theme.h4
2 files changed, 17 insertions, 3 deletions
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);
+}
+
diff --git a/amiga/theme.h b/amiga/theme.h
index e81db33dd..ed61ef148 100644
--- a/amiga/theme.h
+++ b/amiga/theme.h
@@ -44,6 +44,8 @@ void ami_update_pointer(struct Window *win, gui_pointer_shape shape);
void gui_window_start_throbber(struct gui_window *g);
void gui_window_stop_throbber(struct gui_window *g);
-void gui_window_set_pointer(struct gui_window *g, gui_pointer_shape shape);
+void ami_throbber_redraw_schedule(int t, struct gui_window_2 *gwin);
+void gui_window_set_pointer(struct gui_window *g, gui_pointer_shape shape);
#endif
+