From 19ae36662ba040d827f68bd9911ee32d556928e9 Mon Sep 17 00:00:00 2001 From: "Mark K. Kim" Date: Tue, 26 Jun 2018 02:13:41 -0400 Subject: [PATCH] Add more debugging messages. Also update macOS build date in the Info.plist file. --- macos/Info.plist | 2 +- src/tuxpaint.c | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/macos/Info.plist b/macos/Info.plist index f1e461780..8c6c74361 100644 --- a/macos/Info.plist +++ b/macos/Info.plist @@ -23,6 +23,6 @@ CFBundleSignature TXPT CFBundleVersion - 2018-05-21 + 2018-06-26 diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 702a13624..d235012a4 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -23289,6 +23289,10 @@ static void setup(void) #ifndef NOSOUND +#ifdef DEBUG + printf("Initializing sound...\n"); + fflush(stdout); +#endif #ifndef WIN32 if (use_sound && Mix_OpenAudio(44100, AUDIO_S16SYS, 2, 1024) < 0) #else @@ -23317,9 +23321,17 @@ static void setup(void) #endif +#ifdef DEBUG + printf("Enabling key repeat...\n"); + fflush(stdout); +#endif /* Set-up Key-Repeat: */ SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL); +#ifdef DEBUG + printf("Initializing TTF...\n"); + fflush(stdout); +#endif /* Init TTF stuff: */ if (TTF_Init() < 0) { @@ -23332,6 +23344,10 @@ static void setup(void) } +#ifdef DEBUG + printf("Setting up colors...\n"); + fflush(stdout); +#endif setup_colors(); /* Set window icon and caption: */