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) {
g_snprintf (fps_message, 255,
"rendered: %llu\t dropped: %llu\t current: %.2f\t average: %.2f",
frames_rendered, frames_dropped, rr, average_fps);
"rendered: %" G_GUINT64_FORMAT "\t dropped: %" G_GUINT64_FORMAT
"\t current: %.2f\t average: %.2f", frames_rendered, frames_dropped, rr,
average_fps);
} else {
g_snprintf (fps_message, 255,
"rendered: %llu\t dropped: %llu\t fps: %.2f\t drop rate: %.2f",
frames_rendered, frames_dropped, rr, dr);
"rendered: %" G_GUINT64_FORMAT "\t dropped: %" G_GUINT64_FORMAT
"\t fps: %.2f\t drop rate: %.2f", frames_rendered, frames_dropped, rr,
dr);
}
if (self->use_text_overlay) {