summaryrefslogtreecommitdiff
path: root/amiga/theme.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2014-07-05 17:59:54 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2014-07-05 17:59:54 +0100
commit0e28071fa3d7af6cae3d01fa979dfed48a5a0b35 (patch)
tree2dc3c260dfe16c15d6e7ea522fd0efaf14463f8d /amiga/theme.c
parentbdcb123f0aa7670b25d346876aea8a5b0384d71a (diff)
downloadnetsurf-0e28071fa3d7af6cae3d01fa979dfed48a5a0b35.tar.gz
netsurf-0e28071fa3d7af6cae3d01fa979dfed48a5a0b35.tar.bz2
Moved forced throbber redraw to a scheduled callback
Diffstat (limited to 'amiga/theme.c')
-rw-r--r--amiga/theme.c16
1 files changed, 14 insertions, 2 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);
+}
+