From a44cb1ada0a17289c105e9a23c707085d84d4360 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 13 Sep 2020 20:01:07 -0700 Subject: sdl_fb: use SDL_CreateRGBSurface() instead I was using SDL_CreateRGBSurfaceWithFormat() without considering the minimum SDL2 version implications. Switch to SDL_CreateRGBSurface() as there's no relevant difference, so I can lower the minimum SDL2 version in configure.ac. --- src/sdl_fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl_fb.c b/src/sdl_fb.c index a3eb0d1..6ba69e1 100644 --- a/src/sdl_fb.c +++ b/src/sdl_fb.c @@ -187,7 +187,7 @@ static void * sdl_fb_page_alloc(void *context, fb_page_t *res_page) if (!p) return NULL; - p->surface = SDL_CreateRGBSurfaceWithFormat(0, c->width, c->height, 32, SDL_PIXELFORMAT_RGB888); + p->surface = SDL_CreateRGBSurface(0, c->width, c->height, 32, 0, 0, 0, 0); res_page->fragment.buf = p->surface->pixels; res_page->fragment.width = c->width; -- cgit v1.2.3