gfx_shutdown freed unused graphics

origin
stpohle 22 years ago
parent dee8ad4283
commit 219b54f942

@ -1,4 +1,4 @@
/* $Id: gfx.c,v 1.26 2003/07/24 03:56:20 stpohle Exp $ */ /* $Id: gfx.c,v 1.27 2003/07/27 21:33:39 stpohle Exp $ */
/* gfx.c */ /* gfx.c */
#include "bomberclone.h" #include "bomberclone.h"
@ -203,14 +203,7 @@ gfx_loaddata ()
void void
gfx_shutdown () gfx_shutdown ()
{ {
int i;
for (i = 0; i < FT_max; i++)
SDL_FreeSurface (gfx.field[i].image);
for (i = 0; i < MAX_PLAYERS; i++)
SDL_FreeSurface (gfx.players[i].ani.image);
SDL_FreeSurface (gfx.logo); SDL_FreeSurface (gfx.logo);
SDL_FreeSurface (gfx.bomb.image);
SDL_FreeSurface (gfx.fire.image);
SDL_FreeSurface (gfx.menuselect.image); SDL_FreeSurface (gfx.menuselect.image);
gfx.screen = SDL_SetVideoMode (gfx.res.x, gfx.res.y, 16, SDL_HWSURFACE | SDL_DOUBLEBUF); gfx.screen = SDL_SetVideoMode (gfx.res.x, gfx.res.y, 16, SDL_HWSURFACE | SDL_DOUBLEBUF);
SDL_FreeSurface (gfx.screen); SDL_FreeSurface (gfx.screen);

Loading…
Cancel
Save