summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sdl_fb.c2
1 files changed, 1 insertions, 1 deletions
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;
© All Rights Reserved