From 0cac60d30067e41a20eb35bc6d837b9d3fbd2a25 Mon Sep 17 00:00:00 2001 From: William Kendrick Date: Sat, 15 Oct 2005 07:19:45 +0000 Subject: [PATCH] No reason for font-loading thread to run if we're not running interactively! --- src/tuxpaint.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 8a1ee66d6..652d772ee 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -22,7 +22,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - June 14, 2002 - October 9, 2005 + June 14, 2002 - October 14, 2005 */ @@ -2545,10 +2545,6 @@ int main(int argc, char * argv[]) SDL_Rect dest; SDL_Rect src; -#ifdef FORKED_FONTS - run_font_scanner(); -#endif - /* Set up locale support */ setlocale(LC_ALL, ""); @@ -2557,6 +2553,10 @@ int main(int argc, char * argv[]) /* Set up! */ setup(argc, argv); +#ifdef FORKED_FONTS + run_font_scanner(); +#endif + #if 0 while(!font_thread_done) { @@ -14912,8 +14912,10 @@ static char * uppercase(char * str) free(dest); } +#ifdef DEBUG printf(" ORIGINAL: %s\n" "UPPERCASE: %s\n\n", str, ustr); +#endif } else {