mirror of
https://github.com/jtheoof/swappy.git
synced 2024-09-11 14:55:49 +03:00
fix(render): draw from last to first
This commit is contained in:
parent
5678545de5
commit
4b69ada9a1
@ -243,7 +243,7 @@ static void render_paint(cairo_t *cr, struct swappy_paint *paint) {
|
||||
}
|
||||
|
||||
static void render_paints(cairo_t *cr, struct swappy_state *state) {
|
||||
for (GList *elem = state->paints; elem; elem = elem->next) {
|
||||
for (GList *elem = g_list_last(state->paints); elem; elem = elem->prev) {
|
||||
struct swappy_paint *paint = elem->data;
|
||||
render_paint(cr, paint);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user