From 92a4fbb74a151038391ddc03cb48e6b567776a0d Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Sun, 13 Jan 2019 17:42:01 +0100 Subject: Fix pixel format issues --- main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 2a458d6..02b3e36 100644 --- a/main.c +++ b/main.c @@ -76,6 +76,8 @@ int main(int argc, char *argv[]) if (!surf_title) { error_sdl("could not get title surface\n"); } + surf_title = SDL_ConvertSurfaceFormat(surf_title, + SDL_PIXELFORMAT_ARGB8888, 0); SDL_Texture *surf_title_tex = SDL_CreateTextureFromSurface(renderer, surf_title); if (!surf_title_tex) { -- cgit v1.2.1-18-gbd029