mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-07-02 22:14:37 +00:00
Fixes for Linux
- fixed warning about PlaySfx::handle - fixed displaying subtitles - if the path was not full lowercase it didn't find its txt files. - CMake: removed SDLMAIN_FOUND, which is seemingly only defined on windows and does more harm than good. - glpng: always use new libpng API (fixes windows build)
This commit is contained in:
parent
2d795b5bf7
commit
1ab32b585f
4 changed files with 8 additions and 16 deletions
|
@ -277,11 +277,7 @@ int APIENTRY pngLoadRawF(FILE *fp, pngRawInfo *pinfo) {
|
|||
endinfo = png_create_info_struct(png);
|
||||
|
||||
// DH: added following lines
|
||||
#ifdef LIBPNG_NEW_API
|
||||
if (setjmp(png_jmpbuf(png)))
|
||||
#else
|
||||
if (setjmp(png->jmpbuf))
|
||||
#endif
|
||||
{
|
||||
png_destroy_read_struct(&png, &info, &endinfo);
|
||||
return 0;
|
||||
|
@ -385,11 +381,7 @@ int APIENTRY pngLoadF(FILE *fp, int mipmap, int trans, pngInfo *pinfo) {
|
|||
endinfo = png_create_info_struct(png);
|
||||
|
||||
// DH: added following lines
|
||||
#ifdef LIBPNG_NEW_API
|
||||
if (setjmp(png_jmpbuf(png)))
|
||||
#else
|
||||
if (setjmp(png->jmpbuf))
|
||||
#endif
|
||||
{
|
||||
png_destroy_read_struct(&png, &info, &endinfo);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue