summaryrefslogtreecommitdiff
path: root/src/sdl_fb.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2018-02-22 16:40:20 -0800
committerVito Caputo <vcaputo@pengaru.com>2018-02-22 16:40:20 -0800
commitdde6c5e93e26f6706cd04745928ae9ad5dddfc9f (patch)
treee382a61e4af0016637efc14a05d5aa39d091e303 /src/sdl_fb.c
parent7608e85f127faf0e09b1f935654baf57b59f717f (diff)
fb,settings,drm_fb,sd_fb: const settings_t readers
The fb_ops entrypoints and their descendants are purely readers of the settings, so constify their settings_t instances and the operative functions which only read settings.
Diffstat (limited to 'src/sdl_fb.c')
-rw-r--r--src/sdl_fb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sdl_fb.c b/src/sdl_fb.c
index 7047f4a..52cf556 100644
--- a/src/sdl_fb.c
+++ b/src/sdl_fb.c
@@ -21,14 +21,14 @@ struct sdl_fb_page_t {
};
-int sdl_fb_setup(settings_t *settings, setting_desc_t **next_setting)
+int sdl_fb_setup(const settings_t *settings, setting_desc_t **next_setting)
{
/* TODO: window size? fullscreen? vsync? etc. */
return 0;
}
-void * sdl_fb_init(settings_t *settings)
+void * sdl_fb_init(const settings_t *settings)
{
sdl_fb_t *c;
© All Rights Reserved