From 5a962586fb161651fc612ed8a8f6da99d8d22f65 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 12 Jan 2014 23:50:54 +0000 Subject: move mandantory window update and redraw operations into table --- beos/window.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'beos') 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, -- cgit v1.2.3