update sdl and sdl_image to latest

This commit is contained in:
2024-09-09 11:49:32 +02:00
parent 4b9fd6db81
commit 3b399fec5c
6 changed files with 22 additions and 20 deletions

View File

@ -44,7 +44,7 @@ int main(int argc, char** argv) {
auto last_time_tick = std::chrono::steady_clock::now();
// actual setup
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
if (!SDL_Init(SDL_INIT_VIDEO)) {
std::cerr << "SDL_Init failed (" << SDL_GetError() << ")\n";
return 1;
}