afaf
This commit is contained in:
parent
ee555c92d8
commit
f355e3b9d3
|
|
@ -303,8 +303,10 @@ int main(int argc, char *argv[]){
|
||||||
SDL_SetWindowFullscreen(win, true);
|
SDL_SetWindowFullscreen(win, true);
|
||||||
|
|
||||||
if (!win){
|
if (!win){
|
||||||
ErrorMsg("Error creating window: %s", SDL_GetError());
|
WarnMsg("Error creating window: %s", SDL_GetError());
|
||||||
return 0;
|
MIX_Quit();
|
||||||
|
TTF_Quit();
|
||||||
|
SDL_Quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* OSX and Windows have their own native ways of
|
/* OSX and Windows have their own native ways of
|
||||||
|
|
@ -324,7 +326,7 @@ int main(int argc, char *argv[]){
|
||||||
|
|
||||||
if (!mixer){
|
if (!mixer){
|
||||||
SDL_DestroyWindow(win);
|
SDL_DestroyWindow(win);
|
||||||
ErrorMsg("Error creating Mixer Device");
|
WarnMsg("Error creating Mixer Device, check your system audio configuration");
|
||||||
MIX_Quit();
|
MIX_Quit();
|
||||||
TTF_Quit();
|
TTF_Quit();
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue