make a little quieter
This commit is contained in:
parent
9d2af3eefd
commit
9ee4fef27a
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue