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/amiga/corewindow.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'frontends/amiga') diff --git a/frontends/amiga/corewindow.c b/frontends/amiga/corewindow.c index 44798d24b..bfb0eb202 100644 --- a/frontends/amiga/corewindow.c +++ b/frontends/amiga/corewindow.c @@ -826,7 +826,8 @@ ami_cw_invalidate_area(struct core_window *cw, const struct rect *r) static nserror -ami_cw_get_window_dimensions(struct core_window *cw, int *width, int *height) +ami_cw_get_window_dimensions(const struct core_window *cw, + int *width, int *height) { struct ami_corewindow *ami_cw = (struct ami_corewindow *)cw; @@ -867,7 +868,7 @@ ami_cw_update_size(struct core_window *cw, int width, int height) static nserror -ami_cw_get_scroll(struct core_window *cw, int *x, int *y) +ami_cw_get_scroll(const struct core_window *cw, int *x, int *y) { struct ami_corewindow *ami_cw = (struct ami_corewindow *)cw; ULONG win_x0, win_y0; -- cgit v1.2.3