fpsdisplay: Use G_GUINT64_FORMAT instead of %llu

Fixes compiler warnings on 64 bit architectures.
This commit is contained in:
Sebastian Dröge 2010-09-06 10:29:21 +02:00
parent bbfff812bf
commit 6bc160a0dc

View file

@ -373,12 +373,14 @@ display_current_fps (gpointer data)
*/ */
if (dr == 0.0) { if (dr == 0.0) {
g_snprintf (fps_message, 255, g_snprintf (fps_message, 255,
"rendered: %llu\t dropped: %llu\t current: %.2f\t average: %.2f", "rendered: %" G_GUINT64_FORMAT "\t dropped: %" G_GUINT64_FORMAT
frames_rendered, frames_dropped, rr, average_fps); "\t current: %.2f\t average: %.2f", frames_rendered, frames_dropped, rr,
average_fps);
} else { } else {
g_snprintf (fps_message, 255, g_snprintf (fps_message, 255,
"rendered: %llu\t dropped: %llu\t fps: %.2f\t drop rate: %.2f", "rendered: %" G_GUINT64_FORMAT "\t dropped: %" G_GUINT64_FORMAT
frames_rendered, frames_dropped, rr, dr); "\t fps: %.2f\t drop rate: %.2f", frames_rendered, frames_dropped, rr,
dr);
} }
if (self->use_text_overlay) { if (self->use_text_overlay) {