Correcting syntax.

This commit is contained in:
Pere Pujal i Carabantes 2021-12-21 00:31:05 +01:00
parent 7ea62cf0fe
commit 35dd1fb4ce
3 changed files with 4 additions and 3 deletions

View file

@ -85,7 +85,7 @@ void loadfont_callback(SDL_Surface * screen, SDL_Texture * texture, SDL_Renderer
{ {
dirlen = dirlen; dirlen = dirlen;
#ifndef FORKED_FONTS && #defined __ANDROID__ #if defined (__ANDROID__)
while (i-- && !font_thread_aborted) while (i-- && !font_thread_aborted)
#else #else
while (i--) while (i--)

View file

@ -1544,7 +1544,7 @@ int charset_works(TuxPaint_Font * font, const char *s)
unsigned count = 0; unsigned count = 0;
int ret = 0; int ret = 0;
#ifndef FORKED_FONTS && #defined __ANDROID__ #if defined (__ANDROID__)
while (*s && !font_thread_aborted) while (*s && !font_thread_aborted)
#else #else
while (*s) while (*s)

View file

@ -6239,7 +6239,8 @@ static void mainloop(void)
SDL_Delay(10); SDL_Delay(10);
} }
while (!done); while (!done);
#ifndef FORKED_FONTS && #defined __ANDROID__
#if defined (__ANDROID__)
/* Closing Tux Paint before the end of font scanning resulted in crashes in the Android port */ /* Closing Tux Paint before the end of font scanning resulted in crashes in the Android port */
/* This is an abuse of font_thread_aborted, maybe it is better to use a new, more descriptive marker? */ /* This is an abuse of font_thread_aborted, maybe it is better to use a new, more descriptive marker? */
if(!font_thread_done) if(!font_thread_done)