change all references to SDLK_xxxxx to KEY_xxxx

+ some fixes
This commit is contained in:
Thomas Bernard
2018-05-31 16:44:04 +02:00
parent 77005eb780
commit 4d86b8a0c1
31 changed files with 863 additions and 542 deletions

View File

@@ -205,7 +205,9 @@ void Error_function(int error_code, const char *filename, int line_number, const
break;
}
#if defined(USE_SDL) || defined(USE_SDL2)
SDL_Quit();
#endif
exit(error_code);
}
}
@@ -1138,7 +1140,9 @@ void Program_shutdown(void)
iconv_close(cd_utf16_inv);
#endif
#if defined(USE_SDL) || defined(USE_SDL2)
SDL_Quit();
#endif
#if defined(__GP2X__) || defined(__WIZ__) || defined(__CAANOO__)
chdir("/usr/gp2x");