summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-01-12 23:50:54 +0000
committerVincent Sanders <vince@kyllikki.org>2014-01-12 23:50:54 +0000
commit5a962586fb161651fc612ed8a8f6da99d8d22f65 (patch)
treec31bb23578c4b60ec575952cd51e6bdbac6a28dc /riscos
parent4b49b4ac775a1e3ca0c59f390f3f2427e31bce2b (diff)
downloadnetsurf-5a962586fb161651fc612ed8a8f6da99d8d22f65.tar.gz
netsurf-5a962586fb161651fc612ed8a8f6da99d8d22f65.tar.bz2
move mandantory window update and redraw operations into table
Diffstat (limited to 'riscos')
-rw-r--r--riscos/print.c1
-rw-r--r--riscos/window.c5
2 files changed, 5 insertions, 1 deletions
diff --git a/riscos/print.c b/riscos/print.c
index 0df77ef6b..09d4aaefb 100644
--- a/riscos/print.c
+++ b/riscos/print.c
@@ -90,6 +90,7 @@ static unsigned int print_fonts_count;
/** Error in print_fonts_plot_text() or print_fonts_callback(). */
static const char *print_fonts_error;
+void gui_window_redraw_window(struct gui_window *g);
static bool ro_gui_print_click(wimp_pointer *pointer);
static bool ro_gui_print_apply(wimp_w w);
diff --git a/riscos/window.c b/riscos/window.c
index af045b2a4..3975773a0 100644
--- a/riscos/window.c
+++ b/riscos/window.c
@@ -89,6 +89,7 @@
#include "utils/utils.h"
#include "utils/messages.h"
+void gui_window_redraw_window(struct gui_window *g);
static void gui_window_set_extent(struct gui_window *g, int width, int height);
@@ -710,7 +711,7 @@ void gui_window_redraw_window(struct gui_window *g)
* \param data content_msg_data union with filled in redraw data
*/
-void gui_window_update_box(struct gui_window *g, const struct rect *rect)
+static void gui_window_update_box(struct gui_window *g, const struct rect *rect)
{
bool use_buffer;
int x0, y0, x1, y1;
@@ -5242,6 +5243,8 @@ bool ro_gui_alt_pressed(void)
static struct gui_window_table gui_window_table = {
.create = gui_window_create,
.destroy = gui_window_destroy,
+ .redraw = gui_window_redraw_window,
+ .update = gui_window_update_box,
.set_icon = gui_window_set_icon,
.set_title = gui_window_set_title,