X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=main.c;fp=main.c;h=8c8c4efa803835c190d553ecea32e73a216aebf7;hp=c6d48e21f56e6d400e9685b6d97ec7e60025473b;hb=d191c2bde6e8f0bec6b56aaf88d9c66e41169980;hpb=ed073069f4b2813fee191de449e51cc88cd21935 diff --git a/main.c b/main.c index c6d48e2..8c8c4ef 100644 --- a/main.c +++ b/main.c @@ -347,8 +347,7 @@ load_image_alpha(char *filename) tmp = IMG_Load(s); free(s); if(tmp) { - img = SDL_DisplayFormatAlpha(tmp); - SDL_FreeSurface(tmp); + return tmp; } } return img;