mirror of
https://github.com/brl/mutter.git
synced 2025-04-24 02:49:37 +00:00
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:
parent
f5887a6258
commit
e7a8173f3a
@ -304,7 +304,7 @@ clutter_frame_clock_notify_presented (ClutterFrameClock *frame_clock,
|
|||||||
frame_clock->got_measurements_last_frame = TRUE;
|
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,
|
clutter_frame_clock_set_refresh_rate (frame_clock,
|
||||||
frame_info->refresh_rate);
|
frame_info->refresh_rate);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user