You Forgot a break;

This commit is contained in:
Michael Chen 2018-01-24 14:50:34 +01:00
parent c577dcc2d7
commit 6aefc442d7
2 changed files with 2 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 208 KiB

After

Width:  |  Height:  |  Size: 271 KiB

2
main.c
View File

@ -57,6 +57,7 @@ int main(int argc, char * args[]){
break; break;
case Settings: case Settings:
Settings_Draw(renderer, &scenery); Settings_Draw(renderer, &scenery);
break;
case GameOver: case GameOver:
GAMEOVER_Draw(renderer, &scenery); GAMEOVER_Draw(renderer, &scenery);
break; break;
@ -187,6 +188,7 @@ void INITIALIZE() {
window = SDL_CreateWindow("BreakING", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, width, height, SDL_WINDOW_OPENGL); window = SDL_CreateWindow("BreakING", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, width, height, SDL_WINDOW_OPENGL);
SDL_SetWindowResizable(window, true); SDL_SetWindowResizable(window, true);
SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN_DESKTOP);
printf("Window was created!\n"); printf("Window was created!\n");
renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC); renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC);
printf("Renderer was created!\n"); printf("Renderer was created!\n");