summaryrefslogtreecommitdiff
path: root/atari
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 /atari
parent4b49b4ac775a1e3ca0c59f390f3f2427e31bce2b (diff)
downloadnetsurf-5a962586fb161651fc612ed8a8f6da99d8d22f65.tar.gz
netsurf-5a962586fb161651fc612ed8a8f6da99d8d22f65.tar.bz2
move mandantory window update and redraw operations into table
Diffstat (limited to 'atari')
-rw-r--r--atari/gui.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/atari/gui.c b/atari/gui.c
index 7aa0dee07..cfb6b86d6 100644
--- a/atari/gui.c
+++ b/atari/gui.c
@@ -363,7 +363,7 @@ void gui_window_set_scale(struct gui_window *gw, float scale)
browser_window_reformat(gw->browser->bw, false, width, heigth);
}
-void gui_window_redraw_window(struct gui_window *gw)
+static void gui_window_redraw_window(struct gui_window *gw)
{
CMP_BROWSER b;
GRECT rect;
@@ -374,7 +374,7 @@ void gui_window_redraw_window(struct gui_window *gw)
window_schedule_redraw_grect(gw->root, &rect);
}
-void gui_window_update_box(struct gui_window *gw, const struct rect *rect)
+static void gui_window_update_box(struct gui_window *gw, const struct rect *rect)
{
GRECT area;
struct gemtk_wm_scroll_info_s *slid;
@@ -1070,6 +1070,8 @@ void gui_file_gadget_open(struct gui_window *g, hlcache_handle *hl,
static struct gui_window_table atari_window_table = {
.create = gui_window_create,
.destroy = gui_window_destroy,
+ .redraw = gui_window_redraw_window,
+ .update = gui_window_update_box,
.set_title = gui_window_set_title,
.set_url = gui_window_set_url,