main: also show layer info on line break
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>
Fri, 23 Jun 2017 12:10:21 +0000 (14:10 +0200)
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>
Tue, 8 Aug 2017 15:24:00 +0000 (17:24 +0200)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
src/main.cpp

index 20f04e5..c575615 100644 (file)
@@ -53,6 +53,17 @@ int check_events(struct wl::display *d, struct conn *c, int fd) {
             }
             puts("\b\b ");
          }
+
+         if (!c->c->layers.empty()) {
+            puts("Layers:");
+            for (auto const &i : c->c->layers) {
+               struct genivi::rect const &r = i.second->dst_rect;
+               struct genivi::size const &s = i.second->size;
+               printf("%d [%ux%u] (%ux%u@%dx%d), ", i.first, s.w, s.h, r.w, r.h,
+                      r.x, r.y);
+            }
+            puts("\b\b ");
+         }
       }
    }