summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-06-23 15:05:14 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-08-08 17:24:00 +0200
commitff20597ecfbaf742581c1b244868d60435791fd1 (patch)
treeaa46951ff1baa01cccd532e7fb0b96897390b8f4 /src/main.cpp
parentb2dac46f817dcb12c180925a52dae5494ea584a3 (diff)
main/init_layout: use screen::set_render_order instead of add_layer calls
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 1 insertions, 2 deletions
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!