From 13e2ab6613bda2a99a9e657b1886398a82cca51d Mon Sep 17 00:00:00 2001 From: acicchetti Date: Mon, 13 Aug 2018 15:49:26 -0400 Subject: [PATCH] Started making SDL2 migration via https://wiki.libsdl.org/MigrationGuide --- src/platform/mac/platform_mac.c | 2 +- src/platform/sdl/platform_sdl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/mac/platform_mac.c b/src/platform/mac/platform_mac.c index 6d2fd16..ddf8513 100755 --- a/src/platform/mac/platform_mac.c +++ b/src/platform/mac/platform_mac.c @@ -26,7 +26,7 @@ #include -#include +#include #include "wrogue.h" diff --git a/src/platform/sdl/platform_sdl.c b/src/platform/sdl/platform_sdl.c index c758ae9..5e74740 100755 --- a/src/platform/sdl/platform_sdl.c +++ b/src/platform/sdl/platform_sdl.c @@ -619,7 +619,7 @@ static void background_init(void) background_image = SDL_LoadBMP(data_path()); if (background_image == NULL) load_bmp_error(); - Background = SDL_DisplayFormat(background_image); + Background = SDL_ConvertSurfaceFormat(background_image); SDL_FreeSurface(background_image); }