Skip to content

Commit

Permalink
examples: Fix some window titles in the demos.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Dec 6, 2024
1 parent 7ddda4f commit e50dc72
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/demo/01-snake/snake.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])

*appstate = as;

if (!SDL_CreateWindowAndRenderer("examples/game/snake", SDL_WINDOW_WIDTH, SDL_WINDOW_HEIGHT, 0, &as->window, &as->renderer)) {
if (!SDL_CreateWindowAndRenderer("examples/demo/snake", SDL_WINDOW_WIDTH, SDL_WINDOW_HEIGHT, 0, &as->window, &as->renderer)) {
return SDL_APP_FAILURE;
}

Expand Down
2 changes: 1 addition & 1 deletion examples/demo/02-woodeneye-008/woodeneye-008.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])
if (!SDL_Init(SDL_INIT_VIDEO)) {
return SDL_APP_FAILURE;
}
if (!SDL_CreateWindowAndRenderer("examples/game/woodeneye-008", 640, 480, 0, &as->window, &as->renderer)) {
if (!SDL_CreateWindowAndRenderer("examples/demo/woodeneye-008", 640, 480, 0, &as->window, &as->renderer)) {
return SDL_APP_FAILURE;
}

Expand Down
2 changes: 1 addition & 1 deletion examples/demo/03-infinite-monkeys/infinite-monkeys.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])
return SDL_APP_FAILURE;
}

if (!SDL_CreateWindowAndRenderer("examples/game/03-infinite-monkeys", 640, 480, 0, &window, &renderer)) {
if (!SDL_CreateWindowAndRenderer("examples/demo/infinite-monkeys", 640, 480, 0, &window, &renderer)) {
SDL_Log("Couldn't create window/renderer: %s", SDL_GetError());
return SDL_APP_FAILURE;
}
Expand Down

0 comments on commit e50dc72

Please sign in to comment.