Some cleanup

This commit is contained in:
Pere Pujal i Carabantes 2015-01-29 23:17:21 +01:00
parent 690fb2ec4e
commit 22866bd7db

View file

@ -877,7 +877,6 @@ static void SDL_WarpMouse(Uint16 x, Uint16 y)
static SDL_Surface *SDL_DisplayFormat(SDL_Surface *surface) static SDL_Surface *SDL_DisplayFormat(SDL_Surface *surface)
{ {
SDL_Surface *tmp; SDL_Surface *tmp;
// tmp = SDL_ConvertSurfaceFormat(surface, window_format, 0);
tmp = SDL_ConvertSurfaceFormat(surface, SDL_PIXELFORMAT_RGB888, 0); tmp = SDL_ConvertSurfaceFormat(surface, SDL_PIXELFORMAT_RGB888, 0);
return(tmp); return(tmp);
} }
@ -12461,7 +12460,9 @@ static void cleanup(void)
#endif #endif
SDL_DestroyTexture(texture);
SDL_DestroyRenderer(renderer);
SDL_DestroyWindow(window_screen);
/* Close up! */ /* Close up! */
@ -23437,7 +23438,8 @@ VIDEO_BPP, SDL_SWSURFACE);*/
cleanup(); cleanup();
exit(1); exit(1);
}} }
}
SDL_RenderSetLogicalSize(renderer, WINDOW_WIDTH, WINDOW_HEIGHT); SDL_RenderSetLogicalSize(renderer, WINDOW_WIDTH, WINDOW_HEIGHT);
@ -24043,7 +24045,7 @@ VIDEO_BPP, SDL_SWSURFACE);*/
cleanup(); cleanup();
exit(1); exit(1);
} }
// SDL_SetSurfaceAlphaMod(img_color_btns[i], SDL_ALPHA_TRANSPARENT);
SDL_LockSurface(img_color_btns[i]); SDL_LockSurface(img_color_btns[i]);
} }