Add screenshots
This commit is contained in:
parent
00836a5e6f
commit
5a44fb515b
19 changed files with 23 additions and 23 deletions
|
@ -35,7 +35,6 @@ SDL_Window *window;
|
|||
SDL_Renderer *renderer;
|
||||
SDL_Texture *texture;
|
||||
SDL_Surface *screenSurface;
|
||||
SDL_GameController *sdlController;
|
||||
|
||||
uint8_t running = 1, fullscreen = 1;
|
||||
|
||||
|
@ -185,10 +184,6 @@ int main(int argc, char *argv[])
|
|||
puts("initializing SDL");
|
||||
SDL_Init(SDL_INIT_AUDIO);
|
||||
|
||||
sdlController = SDL_GameControllerOpen(0);
|
||||
|
||||
puts(sdlController ? "found a controller" : "no controller found");
|
||||
|
||||
puts("initializing audio");
|
||||
SDL_AudioSpec audioSpec;
|
||||
SDL_memset(&audioSpec,0,sizeof(audioSpec));
|
||||
|
@ -269,7 +264,6 @@ int main(int argc, char *argv[])
|
|||
|
||||
closeDataFile();
|
||||
|
||||
SDL_GameControllerClose(sdlController);
|
||||
SDL_PauseAudio(1);
|
||||
SDL_CloseAudio();
|
||||
SDL_DestroyTexture(texture);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue