diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-01-12 23:50:54 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-01-12 23:50:54 +0000 |
commit | 5a962586fb161651fc612ed8a8f6da99d8d22f65 (patch) | |
tree | c31bb23578c4b60ec575952cd51e6bdbac6a28dc /framebuffer/gui.c | |
parent | 4b49b4ac775a1e3ca0c59f390f3f2427e31bce2b (diff) | |
download | netsurf-5a962586fb161651fc612ed8a8f6da99d8d22f65.tar.gz netsurf-5a962586fb161651fc612ed8a8f6da99d8d22f65.tar.bz2 |
move mandantory window update and redraw operations into table
Diffstat (limited to 'framebuffer/gui.c')
-rw-r--r-- | framebuffer/gui.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/framebuffer/gui.c b/framebuffer/gui.c index 9dd35b6f9..aefc24bdb 100644 --- a/framebuffer/gui.c +++ b/framebuffer/gui.c @@ -1535,13 +1535,13 @@ gui_window_destroy(struct gui_window *gw) free(gw); } -void +static void gui_window_redraw_window(struct gui_window *g) { fb_queue_redraw(g->browser, 0, 0, fbtk_get_width(g->browser), fbtk_get_height(g->browser) ); } -void +static void gui_window_update_box(struct gui_window *g, const struct rect *rect) { struct browser_widget_s *bwidget = fbtk_get_userpw(g->browser); @@ -1844,6 +1844,8 @@ void gui_file_gadget_open(struct gui_window *g, hlcache_handle *hl, static struct gui_window_table framebuffer_gui_window_table = { .create = gui_window_create, .destroy = gui_window_destroy, + .redraw = gui_window_redraw_window, + .update = gui_window_update_box, .set_url = gui_window_set_url, .start_throbber = gui_window_start_throbber, |