summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
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) {