summaryrefslogtreecommitdiff
path: root/beos
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 /beos
parent4b49b4ac775a1e3ca0c59f390f3f2427e31bce2b (diff)
downloadnetsurf-5a962586fb161651fc612ed8a8f6da99d8d22f65.tar.gz
netsurf-5a962586fb161651fc612ed8a8f6da99d8d22f65.tar.bz2
move mandantory window update and redraw operations into table
Diffstat (limited to 'beos')
-rw-r--r--beos/window.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/beos/window.cpp b/beos/window.cpp
index 66bb90640..beee9642e 100644
--- a/beos/window.cpp
+++ b/beos/window.cpp
@@ -1014,7 +1014,7 @@ void nsbeos_redraw_caret(struct gui_window *g)
g->view->UnlockLooper();
}
-void gui_window_redraw_window(struct gui_window *g)
+static void gui_window_redraw_window(struct gui_window *g)
{
if (g->view == NULL)
return;
@@ -1029,7 +1029,7 @@ void gui_window_redraw_window(struct gui_window *g)
g->view->UnlockLooper();
}
-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)
{
hlcache_handle *c = g->bw->current_content;
@@ -1365,6 +1365,8 @@ void gui_window_get_dimensions(struct gui_window *g, int *width, int *height,
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,
.new_content = gui_window_new_content,