Backends/SDL2/Window-Software: !x -> x == NULL

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
Gabriel Ravier 2020-04-12 01:08:26 +02:00
parent b58cfcdd2f
commit 3f0d8b2e6f

View file

@ -87,6 +87,6 @@ void WindowBackend_Software_HandleWindowResize(unsigned int width, unsigned int
// We need to fetch a new surface pointer // We need to fetch a new surface pointer
window_sdlsurface = SDL_GetWindowSurface(window); window_sdlsurface = SDL_GetWindowSurface(window);
if (!window_sdlsurface) if (window_sdlsurface == NULL)
Backend_PrintError("Couldn't get SDL surface associated with window: %s", SDL_GetError()); Backend_PrintError("Couldn't get SDL surface associated with window: %s", SDL_GetError());
} }