1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-05 11:57:58 +00:00

migrated to SDL3

This commit is contained in:
Zeno Rogue
2025-06-07 16:16:57 +02:00
parent 41ffba600f
commit a80b74dc62
25 changed files with 435 additions and 235 deletions

View File

@@ -626,7 +626,7 @@ EX always_false in;
}
}
IMAGESAVE(s, (filename + "-floors.png").c_str());
SDL_FreeSurface(s);
SDL_DestroySurface(s);
}
#endif
#endif
@@ -641,7 +641,7 @@ EX }
void IMAGESAVE(SDL_Surface *s, const char *fname) {
SDL_Surface *s2 = SDL_PNGFormatAlpha(s);
SDL_SavePNG(s2, fname);
if(s != s2) SDL_FreeSurface(s2);
if(s != s2) SDL_DestroySurface(s2);
}
#endif
@@ -741,7 +741,7 @@ EX void postprocess(string fname, SDL_Surface *sdark, SDL_Surface *sbright) {
}
}
output(sout, fname);
SDL_FreeSurface(sout);
SDL_DestroySurface(sout);
}
#endif