[mutter] frame-clock: Fix constant type of condition
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] frame-clock: Fix constant type of condition
- Date: Thu, 2 Jun 2022 18:12:25 +0000 (UTC)
commit e7a8173f3a7c5dd6f04d16ad4e5cb9e762d29877
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Fri May 27 16:59:45 2022 +0200
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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2434>
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 6fa2b25887..23141f1c93 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]