mirror of
https://github.com/brl/mutter.git
synced 2025-05-05 22:54:56 +00:00
clutter-master-clock.c: Set frame_budget conditionally
The frame_budget member of ClutterMasterClock is only enabled when CLUTTER_ENABLE_DEBUG is enabled, so fix the build with this. Checked with Emmanuele Bassi on IRC.
This commit is contained in:
parent
eaecd1efef
commit
53e16b6019
@ -564,7 +564,9 @@ clutter_master_clock_init (ClutterMasterClock *self)
|
|||||||
self->idle = FALSE;
|
self->idle = FALSE;
|
||||||
self->ensure_next_iteration = FALSE;
|
self->ensure_next_iteration = FALSE;
|
||||||
|
|
||||||
|
#ifdef CLUTTER_ENABLE_DEBUG
|
||||||
self->frame_budget = G_USEC_PER_SEC / 60;
|
self->frame_budget = G_USEC_PER_SEC / 60;
|
||||||
|
#endif
|
||||||
|
|
||||||
g_source_set_priority (source, CLUTTER_PRIORITY_REDRAW);
|
g_source_set_priority (source, CLUTTER_PRIORITY_REDRAW);
|
||||||
g_source_set_can_recurse (source, FALSE);
|
g_source_set_can_recurse (source, FALSE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user