mirror of
https://github.com/brl/mutter.git
synced 2025-02-09 01:54:10 +00:00
timeline: Cast elapsed time before emitting ::new-frame
When emitting a new-frame signal, priv->elapsed_time is passed as a parameter. This is a gint64. The closure marshal uses an INT. On some platforms, this is not received correctly by signal handlers (they receive 0). One solution is to cast priv->elapsed_time to a gint when emitting the signal. We cannot change the signature of the signal without breaking ABI. https://bugzilla.gnome.org/show_bug.cgi?id=654066
This commit is contained in:
parent
c9cbe58343
commit
1402c05112
@ -550,8 +550,10 @@ emit_frame_signal (ClutterTimeline *timeline)
|
|||||||
{
|
{
|
||||||
ClutterTimelinePrivate *priv = timeline->priv;
|
ClutterTimelinePrivate *priv = timeline->priv;
|
||||||
|
|
||||||
g_signal_emit (timeline, timeline_signals[NEW_FRAME], 0,
|
/* see bug https://bugzilla.gnome.org/show_bug.cgi?id=654066 */
|
||||||
priv->elapsed_time);
|
gint elapsed = (gint) priv->elapsed_time;
|
||||||
|
|
||||||
|
g_signal_emit (timeline, timeline_signals[NEW_FRAME], 0, elapsed);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user