From 9ee4fef27acf653a7e493de9afda791ab9ffb780 Mon Sep 17 00:00:00 2001 From: Jeff Cliff Date: Sat, 25 Sep 2021 17:49:37 -0600 Subject: [PATCH] make a little quieter --- configure.ac | 3 ++- src/infinity.c | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 2344768..2d523a4 100644 --- a/configure.ac +++ b/configure.ac @@ -74,7 +74,8 @@ INF_CFLAGS_EXTRA='' #-Wimplicit if test x"$GCC" = xyes; then - INF_CFLAGS_EXTRA="${INF_CFLAGS_EXTRA} -Wall -Wunused -Wmissing-prototypes" +# INF_CFLAGS_EXTRA="${INF_CFLAGS_EXTRA} -Wall -Wunused -Wmissing-prototypes" + INF_CFLAGS_EXTRA="${INF_CFLAGS_EXTRA} -Wall -Wunused " CXXFLAGS="${CXXFLAGS} -std=gnu++2a" fi diff --git a/src/infinity.c b/src/infinity.c index 912dae2..99dfa09 100644 --- a/src/infinity.c +++ b/src/infinity.c @@ -198,7 +198,9 @@ static void handle_window_event(SDL_Event *event) { G_UNLOCK(resizing); width = event->window.data1; height = event->window.data2; +#ifdef INFINITY_DEBUG g_message("Infinity: screen resize to %dx%d pixels", width, height); +#endif must_resize = TRUE; break; /*case SDL_WINDOWEVENT_SIZE_CHANGED: @@ -298,7 +300,10 @@ static void check_events() // log calling line to improve bug reports static gint64 calculate_frame_length_usecs(gint32 fps, int line) { gint64 frame_length = (gint64)(((1.0 / fps) * 1000000)); +#ifdef INFINITY_DEBUG g_message("Infinity[%d]: setting maximum rate at ~%d frames/second", line, fps); +#endif /* INFINITY_DEBUG */ + return frame_length; } @@ -356,7 +361,7 @@ static int renderer(void *arg) display_load_random_effect(¤t_effect); t_last_effect = 0; t_between_effects = params->get_effect_interval(); -#endif +#endif /* INFINITY_DEBUG */ } if (t_last_color % t_between_colors == 0) { #ifdef INFINITY_DEBUG