Commit 912a9ecf authored by Daniel van Vugt's avatar Daniel van Vugt

clutter/stage-cogl: Use G_USEC_PER_SEC instead of hardcoded number

One million is the number of microseconds in one second, which is also
defined by `G_USEC_PER_SEC`.

!363
parent 0487d672
......@@ -201,7 +201,7 @@ clutter_stage_cogl_schedule_update (ClutterStageWindow *stage_window,
if (refresh_rate == 0.0)
refresh_rate = 60.0;
refresh_interval = (gint64) (0.5 + 1000000 / refresh_rate);
refresh_interval = (gint64) (0.5 + G_USEC_PER_SEC / refresh_rate);
if (refresh_interval == 0)
refresh_interval = 16667; /* 1/60th second */
......
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