Skip to content

Commit

Permalink
SDL3/SDL_CreateWindow: Updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
sechshelme authored and icculus committed Apr 24, 2024
1 parent 835dfa3 commit b7209b6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SDL3/SDL_CreateWindow.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ This function is available since SDL 3.0.0.
// Using SDL3 to create an application window
#include <SDL3/SDL.h>
#include <stdio.h>
int main(int argc, char* argv[]) {
Expand All @@ -114,7 +113,7 @@ int main(int argc, char* argv[]) {
// Check that the window was successfully created
if (window == NULL) {
// In the case that the window could not be made...
printf("Could not create window: %s\n", SDL_GetError());
SDL_LogError(SDL_LOG_CATEGORY_ERROR, "Could not create window: %s\n", SDL_GetError());
return 1;
}
Expand Down

0 comments on commit b7209b6

Please sign in to comment.