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

@@ -63,7 +63,7 @@ initializeTexture(SDL_Renderer *renderer)
brush =
SDL_CreateTextureFromSurface(renderer, bmp_surface);
SDL_FreeSurface(bmp_surface);
if (brush == 0) {
if (!brush) {
fatalError("could not create brush texture");
}
/* additive blending -- laying strokes on top of eachother makes them brighter */