mirror of
https://github.com/artizirk/wdisplays.git
synced 2024-11-25 09:50:58 +02:00
Fix animation not working when capture disabled
This commit is contained in:
parent
03de59d307
commit
049bf5bd8f
@ -938,6 +938,7 @@ static void set_clicked_head(struct wd_state *state,
|
|||||||
clicked->clicked = TRUE;
|
clicked->clicked = TRUE;
|
||||||
flip_anim(&clicked->click_begin, tick);
|
flip_anim(&clicked->click_begin, tick);
|
||||||
}
|
}
|
||||||
|
update_tick_callback(state);
|
||||||
}
|
}
|
||||||
state->clicked = clicked;
|
state->clicked = clicked;
|
||||||
}
|
}
|
||||||
@ -1223,6 +1224,7 @@ static gboolean redraw_canvas(GtkWidget *widget, GdkFrameClock *frame_clock, gpo
|
|||||||
if (state->capture) {
|
if (state->capture) {
|
||||||
wd_capture_frame(state);
|
wd_capture_frame(state);
|
||||||
}
|
}
|
||||||
|
update_tick_callback(state);
|
||||||
queue_canvas_draw(state);
|
queue_canvas_draw(state);
|
||||||
return G_SOURCE_CONTINUE;
|
return G_SOURCE_CONTINUE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user