Commit a76762a0 authored by Daniel van Vugt's avatar Daniel van Vugt

clutter/stage-cogl: Use default frame rate instead of hardcoded 60Hz

Instead of 0Hz falling back to 60Hz, use `CLUTTER_DEFAULT_FPS` which is
also 60Hz by default.

!363
parent ccf27e5f
......@@ -198,8 +198,8 @@ clutter_stage_cogl_schedule_update (ClutterStageWindow *stage_window,
}
refresh_rate = stage_cogl->refresh_rate;
if (refresh_rate == 0.0)
refresh_rate = 60.0;
if (refresh_rate <= 0.0)
refresh_rate = clutter_get_default_frame_rate ();
refresh_interval = (gint64) (0.5 + G_USEC_PER_SEC / refresh_rate);
if (refresh_interval == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment