Closing Tux Paint before the end of font scanning resulted in crashes in the Android port.

This commit is contained in:
Pere Pujal i Carabantes 2020-05-14 00:48:50 +02:00
parent ba19100fb9
commit bcc3bdda96
3 changed files with 14 additions and 0 deletions

View file

@ -82,7 +82,11 @@ void loadfont_callback(SDL_Surface * screen, SDL_Texture * texture, SDL_Renderer
{
dirlen = dirlen;
#ifndef FORKED_FONTS && #defined __ANDROID__
while (i-- && !font_thread_aborted)
#else
while (i--)
#endif
{
int loadable = 0;
const char *restrict const cp = strchr(files[i].str, '.');