From e7a8173f3a7c5dd6f04d16ad4e5cb9e762d29877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 27 May 2022 16:59:45 +0200 Subject: [PATCH] frame-clock: Fix constant type of condition To avoid confusion, change the int to a float, since we're comparing with a float. Part-of: --- clutter/clutter/clutter-frame-clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter/clutter-frame-clock.c b/clutter/clutter/clutter-frame-clock.c index 6fa2b2588..23141f1c9 100644 --- a/clutter/clutter/clutter-frame-clock.c +++ b/clutter/clutter/clutter-frame-clock.c @@ -304,7 +304,7 @@ clutter_frame_clock_notify_presented (ClutterFrameClock *frame_clock, frame_clock->got_measurements_last_frame = TRUE; } - if (frame_info->refresh_rate > 1) + if (frame_info->refresh_rate > 1.0) { clutter_frame_clock_set_refresh_rate (frame_clock, frame_info->refresh_rate);