Browse Source

make a little quieter

master
Jeff Cliff 2 months ago
parent
commit
9ee4fef27a
  1. 3
      configure.ac
  2. 7
      src/infinity.c

3
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

7
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(&current_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

Loading…
Cancel
Save