From 194dfad4a5ca36bf39bd1c20c874747991f9281c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 22 Feb 2020 16:31:24 +0000 Subject: Core window: Constify the core_window handle through the getters. --- frontends/riscos/corewindow.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'frontends/riscos') diff --git a/frontends/riscos/corewindow.c b/frontends/riscos/corewindow.c index 8004dcc95..4398fca28 100644 --- a/frontends/riscos/corewindow.c +++ b/frontends/riscos/corewindow.c @@ -832,7 +832,7 @@ ro_cw_update_size(struct core_window *cw, int width, int height) * Callback from the core to scroll the visible content. */ static nserror -ro_cw_get_scroll(struct core_window *cw, int *x, int *y) +ro_cw_get_scroll(const struct core_window *cw, int *x, int *y) { struct ro_corewindow *ro_cw = (struct ro_corewindow *)cw; wimp_window_state state = { @@ -888,7 +888,8 @@ ro_cw_set_scroll(struct core_window *cw, int x, int y) * \param[out] height to be set to viewport height in px */ static nserror -ro_cw_get_window_dimensions(struct core_window *cw, int *width, int *height) +ro_cw_get_window_dimensions(const struct core_window *cw, + int *width, int *height) { struct ro_corewindow *ro_cw = (struct ro_corewindow *)cw; os_error *error; -- cgit v1.2.3