1
0
Fork 0

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>
This commit is contained in:
Jonas Ådahl 2022-05-27 16:59:45 +02:00 committed by Marge Bot
parent f5887a6258
commit e7a8173f3a

View file

@ -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);