diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2021-02-16 21:51:33 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2021-02-16 21:51:33 -0800 |
commit | 9e56788affedd6b01df6764732a4ba786f7a47f3 (patch) | |
tree | 89243765d939c4477de95435ab774f307fdb8f3c /src/sdl_fb.c | |
parent | 11b87c843e20f66bd68e02353ba4a1072e1230a6 (diff) |
*fb: plumb outer fb_t down to fb_ops_t methods
None of the existing fb_ops_t implementations need this, but due
to how GTK+ works, the GTK+ frontend using librototiller will likely
want to wire up calling fb_flip() on the fb from behind fb_ops.
Diffstat (limited to 'src/sdl_fb.c')
-rw-r--r-- | src/sdl_fb.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sdl_fb.c b/src/sdl_fb.c index 8e48329..bff7b90 100644 --- a/src/sdl_fb.c +++ b/src/sdl_fb.c @@ -162,7 +162,7 @@ static int sdl_fb_init(const settings_t *settings, void **res_context) } -static void sdl_fb_shutdown(void *context) +static void sdl_fb_shutdown(fb_t *fb, void *context) { sdl_fb_t *c = context; @@ -171,7 +171,7 @@ static void sdl_fb_shutdown(void *context) } -static int sdl_fb_acquire(void *context, void *page) +static int sdl_fb_acquire(fb_t *fb, void *context, void *page) { sdl_fb_t *c = context; sdl_fb_page_t *p = page; @@ -192,7 +192,7 @@ static int sdl_fb_acquire(void *context, void *page) } -static void sdl_fb_release(void *context) +static void sdl_fb_release(fb_t *fb, void *context) { sdl_fb_t *c = context; @@ -202,7 +202,7 @@ static void sdl_fb_release(void *context) } -static void * sdl_fb_page_alloc(void *context, fb_page_t *res_page) +static void * sdl_fb_page_alloc(fb_t *fb, void *context, fb_page_t *res_page) { sdl_fb_t *c = context; sdl_fb_page_t *p; @@ -225,7 +225,7 @@ static void * sdl_fb_page_alloc(void *context, fb_page_t *res_page) } -static int sdl_fb_page_free(void *context, void *page) +static int sdl_fb_page_free(fb_t *fb, void *context, void *page) { sdl_fb_t *c = context; sdl_fb_page_t *p = page; @@ -253,7 +253,7 @@ static int sdl_ready() } -static int sdl_fb_page_flip(void *context, void *page) +static int sdl_fb_page_flip(fb_t *fb, void *context, void *page) { sdl_fb_t *c = context; sdl_fb_page_t *p = page; |