You Forgot a break;
This commit is contained in:
parent
c577dcc2d7
commit
6aefc442d7
Binary file not shown.
Before Width: | Height: | Size: 208 KiB After Width: | Height: | Size: 271 KiB |
2
main.c
2
main.c
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user