summaryrefslogtreecommitdiff
path: root/amiga
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
parentbdcb123f0aa7670b25d346876aea8a5b0384d71a (diff)
downloadnetsurf-0e28071fa3d7af6cae3d01fa979dfed48a5a0b35.tar.gz
netsurf-0e28071fa3d7af6cae3d01fa979dfed48a5a0b35.tar.bz2
Moved forced throbber redraw to a scheduled callback
Diffstat (limited to 'amiga')
-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
+