diff --git a/examples/showanim.c b/examples/showanim.c index 02cec1de..153fc328 100644 --- a/examples/showanim.c +++ b/examples/showanim.c @@ -78,12 +78,12 @@ int main(int argc, char *argv[]) } } - if (SDL_Init(SDL_INIT_VIDEO) == -1) { + if (!SDL_Init(SDL_INIT_VIDEO)) { SDL_Log("SDL_Init(SDL_INIT_VIDEO) failed: %s\n", SDL_GetError()); return(2); } - if (SDL_CreateWindowAndRenderer("animation demo", 0, 0, flags, &window, &renderer) < 0) { + if (!SDL_CreateWindowAndRenderer("animation demo", 0, 0, flags, &window, &renderer)) { SDL_Log("SDL_CreateWindowAndRenderer() failed: %s\n", SDL_GetError()); return(2); } diff --git a/examples/showimage.c b/examples/showimage.c index 1557a28e..ccc114f4 100644 --- a/examples/showimage.c +++ b/examples/showimage.c @@ -82,7 +82,7 @@ int main(int argc, char *argv[]) } } - if (SDL_Init(SDL_INIT_VIDEO) == -1) { + if (!SDL_Init(SDL_INIT_VIDEO)) { SDL_Log("SDL_Init(SDL_INIT_VIDEO) failed: %s\n", SDL_GetError()); result = 2; goto done; diff --git a/external/SDL b/external/SDL index efdcfef4..85bbc602 160000 --- a/external/SDL +++ b/external/SDL @@ -1 +1 @@ -Subproject commit efdcfef4b94c41229b92633e184b17b7f3c4d01c +Subproject commit 85bbc6028ad36e2c1daa8fac60ae07562077b17e