diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-07-12 18:43:31 -0400 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-07-12 18:43:31 -0400 |
| commit | b64ada0dfec5895d14bd0d41cb83779d093970fe (patch) | |
| tree | 3f31faee0ce14de2072c997768b889a970df9c7a /mazeoflife.cpp | |
| parent | f6413b88fba9ac6d61c7ecdd8a1a300b69368c8d (diff) | |
| download | mazeoflife-b64ada0dfec5895d14bd0d41cb83779d093970fe.tar.gz mazeoflife-b64ada0dfec5895d14bd0d41cb83779d093970fe.tar.bz2 mazeoflife-b64ada0dfec5895d14bd0d41cb83779d093970fe.zip | |
Whitespace changes
Diffstat (limited to 'mazeoflife.cpp')
| -rw-r--r-- | mazeoflife.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
| diff --git a/mazeoflife.cpp b/mazeoflife.cpp index da19908..cf21d2a 100644 --- a/mazeoflife.cpp +++ b/mazeoflife.cpp | |||
| @@ -13,7 +13,7 @@ int main(int argc, char *argv[]) | |||
| 13 | srand(time(NULL)); | 13 | srand(time(NULL)); |
| 14 | 14 | ||
| 15 | if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) == -1) | 15 | if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) == -1) |
| 16 | { | 16 | { |
| 17 | printf("Could not initialize SDL: %s.\n", SDL_GetError()); | 17 | printf("Could not initialize SDL: %s.\n", SDL_GetError()); |
| 18 | exit(-1); | 18 | exit(-1); |
| 19 | } | 19 | } |
| @@ -29,17 +29,17 @@ int main(int argc, char *argv[]) | |||
| 29 | printf("Cound not initalize SDL_net: %s.\n", SDLNet_GetError()); | 29 | printf("Cound not initalize SDL_net: %s.\n", SDLNet_GetError()); |
| 30 | exit(-1); | 30 | exit(-1); |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | SDL_Window* window = SDL_CreateWindow("Maze of Life", 100, 100, 480, 480, SDL_WINDOW_SHOWN); | 33 | SDL_Window* window = SDL_CreateWindow("Maze of Life", 100, 100, 480, 480, SDL_WINDOW_SHOWN); |
| 34 | if (window == NULL) | 34 | if (window == NULL) |
| 35 | { | 35 | { |
| 36 | std::cout << "SDL_CreateWindow Error: " << SDL_GetError() << std::endl; | 36 | std::cout << "SDL_CreateWindow Error: " << SDL_GetError() << std::endl; |
| 37 | return 1; | 37 | return 1; |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | SDL_Surface* icon = SDL_LoadBMP("resources/icon.bmp"); | 40 | SDL_Surface* icon = SDL_LoadBMP("resources/icon.bmp"); |
| 41 | SDL_SetWindowIcon(window, icon); | 41 | SDL_SetWindowIcon(window, icon); |
| 42 | 42 | ||
| 43 | SDL_Renderer* renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC); | 43 | SDL_Renderer* renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC); |
| 44 | if (renderer == NULL) | 44 | if (renderer == NULL) |
| 45 | { | 45 | { |
| @@ -52,7 +52,7 @@ int main(int argc, char *argv[]) | |||
| 52 | { | 52 | { |
| 53 | state = (*state)(window, renderer); | 53 | state = (*state)(window, renderer); |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | SDL_DestroyRenderer(renderer); | 56 | SDL_DestroyRenderer(renderer); |
| 57 | SDL_DestroyWindow(window); | 57 | SDL_DestroyWindow(window); |
| 58 | SDLNet_Quit(); | 58 | SDLNet_Quit(); |
