diff --git a/rc.c b/rc.c index 6a5d4e0..b4b13d5 100644 --- a/rc.c +++ b/rc.c @@ -8859,7 +8859,8 @@ int initsound(void) { char filename[BUFLEN]; /* init */ - if (Mix_OpenAudio(44100, AUDIO_S16SYS, 2, 1024) < 0) { + //if (Mix_OpenAudio(44100, AUDIO_S16SYS, 2, 1024) < 0) { + if (Mix_OpenAudio(22050, MIX_DEFAULT_FORMAT, 2, 2048) < 0) { printf("Error initialising sound: %s.\n",Mix_GetError()); return B_TRUE; } @@ -11555,10 +11556,16 @@ void dotitlescreen(void) { //SDL_FillRect(screen, NULL, SDL_MapRGB(screen->format, 0, 0, 0)); // free temp surfaces + SDL_FreeSurface(cointext ); + SDL_FreeSurface(ver ); SDL_FreeSurface(text ); SDL_FreeSurface(text2 ); SDL_FreeSurface(easy ); SDL_FreeSurface(norm ); + SDL_FreeSurface(help ); + SDL_FreeSurface(helpon ); + SDL_FreeSurface(helpoff ); + SDL_FreeSurface(titlebg ); SDL_FreeSurface(p1ready); SDL_FreeSurface(p2ready); }