From 3edcab0b467d87ab76c7ac72c58fb8466b3e0c04 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Mon, 2 Jul 2018 15:21:40 +0100 Subject: [PATCH] [SDL] SDL_CreateRGBSurface flags are deprecated in SDL2 --- sdl/sdl2/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdl/sdl2/main.c b/sdl/sdl2/main.c index 6121f71..fb42b68 100644 --- a/sdl/sdl2/main.c +++ b/sdl/sdl2/main.c @@ -150,7 +150,7 @@ static int sdl_video_init() } sdl_video.window = SDL_CreateWindow("Genesis Plus GX", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, VIDEO_WIDTH, VIDEO_HEIGHT, fullscreen); sdl_video.surf_screen = SDL_GetWindowSurface(sdl_video.window); - sdl_video.surf_bitmap = SDL_CreateRGBSurfaceWithFormat(SDL_SWSURFACE, 720, 576, SDL_BITSPERPIXEL(surface_format), surface_format); + sdl_video.surf_bitmap = SDL_CreateRGBSurfaceWithFormat(0, 720, 576, SDL_BITSPERPIXEL(surface_format), surface_format); sdl_video.frames_rendered = 0; SDL_ShowCursor(0); return 1;