summaryrefslogtreecommitdiff
path: root/beos/window.cpp
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2014-01-13 11:38:35 +0000
committerVincent Sanders <vince@netsurf-browser.org>2014-01-13 11:38:35 +0000
commitd70e371cd99d35859b0514884163447fa793738a (patch)
tree0c255ba4ecee52becc72086f48fceea4eb35e90e /beos/window.cpp
parent7227c29bbacbc796e9f549cf21e8bd978fde5114 (diff)
downloadnetsurf-d70e371cd99d35859b0514884163447fa793738a.tar.gz
netsurf-d70e371cd99d35859b0514884163447fa793738a.tar.bz2
move two more mandantory window operations to table
Diffstat (limited to 'beos/window.cpp')
-rw-r--r--beos/window.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/beos/window.cpp b/beos/window.cpp
index 5fd177bb7..cff33a35b 100644
--- a/beos/window.cpp
+++ b/beos/window.cpp
@@ -1087,7 +1087,7 @@ static void gui_window_set_scroll(struct gui_window *g, int sx, int sy)
}
-void gui_window_update_extent(struct gui_window *g)
+static void gui_window_update_extent(struct gui_window *g)
{
//CALLED();
if (!g->bw->current_content)
@@ -1347,7 +1347,7 @@ void gui_set_clipboard(const char *buffer, size_t length,
}
}
-void gui_window_get_dimensions(struct gui_window *g, int *width, int *height,
+static void gui_window_get_dimensions(struct gui_window *g, int *width, int *height,
bool scaled)
{
if (g->view && g->view->LockLooper()) {
@@ -1369,6 +1369,8 @@ static struct gui_window_table gui_window_table = {
.update = gui_window_update_box,
.get_scroll = gui_window_get_scroll,
.set_scroll = gui_window_set_scroll,
+ .get_dimensions = gui_window_get_dimensions,
+ .update_extent = gui_window_update_extent,
.new_content = gui_window_new_content,