[SDL] SDL_CreateRGBSurface flags are deprecated in SDL2

This commit is contained in:
Clownacy 2018-07-02 15:21:40 +01:00
parent 0ac750010e
commit 3edcab0b46

View File

@ -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;