summaryrefslogtreecommitdiff
path: root/frontends/framebuffer
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2020-02-22 16:31:24 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2020-02-22 16:37:37 +0000
commit194dfad4a5ca36bf39bd1c20c874747991f9281c (patch)
tree704a9a760a16b7a86c1e1ed93abadab5ff1c917b /frontends/framebuffer
parente87bc1bfdacd145f106bc2598997b91f4b177092 (diff)
downloadnetsurf-194dfad4a5ca36bf39bd1c20c874747991f9281c.tar.gz
netsurf-194dfad4a5ca36bf39bd1c20c874747991f9281c.tar.bz2
Core window: Constify the core_window handle through the getters.
Diffstat (limited to 'frontends/framebuffer')
-rw-r--r--frontends/framebuffer/corewindow.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/frontends/framebuffer/corewindow.c b/frontends/framebuffer/corewindow.c
index a27d666f2..dbd8d013b 100644
--- a/frontends/framebuffer/corewindow.c
+++ b/frontends/framebuffer/corewindow.c
@@ -160,7 +160,7 @@ fb_cw_set_scroll(struct core_window *cw, int x, int y)
static nserror
-fb_cw_get_scroll(struct core_window *cw, int *x, int *y)
+fb_cw_get_scroll(const struct core_window *cw, int *x, int *y)
{
/* struct fb_corewindow *fb_cw = (struct fb_corewindow *)cw;
@@ -171,7 +171,8 @@ fb_cw_get_scroll(struct core_window *cw, int *x, int *y)
static nserror
-fb_cw_get_window_dimensions(struct core_window *cw, int *width, int *height)
+fb_cw_get_window_dimensions(const struct core_window *cw,
+ int *width, int *height)
{
struct fb_corewindow *fb_cw = (struct fb_corewindow *)cw;