Don't compare pointer against '0', but NULL

This commit is contained in:
Sylvain
2022-11-16 21:47:43 +01:00
parent 1d7966df15
commit ce5da5d579
14 changed files with 21 additions and 21 deletions

View File

@@ -58,7 +58,7 @@ main(int argc, char *argv[])
/* create window and renderer */
window = SDL_CreateWindow(NULL, 0, 0, 320, 480, SDL_WINDOW_ALLOW_HIGHDPI);
if (window == 0) {
if (!window) {
fatalError("Could not initialize Window");
}
renderer = SDL_CreateRenderer(window, -1, 0);