From ff20597ecfbaf742581c1b244868d60435791fd1 Mon Sep 17 00:00:00 2001 From: Marcus Fritzsch Date: Fri, 23 Jun 2017 15:05:14 +0200 Subject: main/init_layout: use screen::set_render_order instead of add_layer calls Signed-off-by: Marcus Fritzsch --- src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 364e535..bd61a29 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -96,8 +96,7 @@ void init_layout(struct conn &c) { l1k->set_destination_rectangle(0, 0, o->width, o->height); // Add layers to screen - s->add_layer(l100.get()); - s->add_layer(l1k.get()); + s->set_render_order({100, 1000}); c.c->commit_changes(); // Note: this does not flush the display! -- cgit 1.2.3-korg