diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) {
|