diff options
author | Silvan Jegen <s.jegen@gmail.com> | 2019-01-13 17:42:01 +0100 |
---|---|---|
committer | Silvan Jegen <s.jegen@gmail.com> | 2019-01-13 17:42:01 +0100 |
commit | 92a4fbb74a151038391ddc03cb48e6b567776a0d (patch) | |
tree | c936f343217561f68bf62405f0fe7aebe7fb966d /main.c | |
parent | 54bb3b30f1a625e48621a9b139127e7a2dd82561 (diff) |
Fix pixel format issues
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) {
|