summaryrefslogtreecommitdiff
path: root/atari/gui.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-01-13 01:08:15 +0000
committerVincent Sanders <vince@kyllikki.org>2014-01-13 01:08:15 +0000
commit7227c29bbacbc796e9f549cf21e8bd978fde5114 (patch)
treeecd935b801f61ea1d69eea576fcaaf57e4bd909c /atari/gui.c
parent5a962586fb161651fc612ed8a8f6da99d8d22f65 (diff)
downloadnetsurf-7227c29bbacbc796e9f549cf21e8bd978fde5114.tar.gz
netsurf-7227c29bbacbc796e9f549cf21e8bd978fde5114.tar.bz2
move window scroll getter and setter into operations table
Diffstat (limited to 'atari/gui.c')
-rw-r--r--atari/gui.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/atari/gui.c b/atari/gui.c
index cfb6b86d6..cb1b123bd 100644
--- a/atari/gui.c
+++ b/atari/gui.c
@@ -113,6 +113,7 @@ EVMULT_IN aes_event_in = {
EVMULT_OUT aes_event_out;
short aes_msg_out[8];
+bool gui_window_get_scroll(struct gui_window *w, int *sx, int *sy);
static void gui_poll(bool active)
@@ -404,7 +405,7 @@ bool gui_window_get_scroll(struct gui_window *w, int *sx, int *sy)
return( true );
}
-void gui_window_set_scroll(struct gui_window *w, int sx, int sy)
+static void gui_window_set_scroll(struct gui_window *w, int sx, int sy)
{
int units = 0;
if ((w == NULL)
@@ -1072,6 +1073,8 @@ static struct gui_window_table atari_window_table = {
.destroy = gui_window_destroy,
.redraw = gui_window_redraw_window,
.update = gui_window_update_box,
+ .get_scroll = gui_window_get_scroll,
+ .set_scroll = gui_window_set_scroll,
.set_title = gui_window_set_title,
.set_url = gui_window_set_url,