diff options
author | Scott Anderson <ascent12@hotmail.com> | 2017-06-08 00:52:33 +1200 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2017-06-08 00:52:33 +1200 |
commit | 382f712792007ad839c4b6febf7f6387128ca7af (patch) | |
tree | 03a8e31a065c43f5c5cce46fd6e366b62d12a646 /example | |
parent | 53dd622263cb2b952a148463cfb046ba084d57ac (diff) | |
parent | 69deb99a654846d6c94ee7fc0f1da818c5965e3e (diff) |
Merge remote-tracking branch 'upstream/master' into rotation
Diffstat (limited to 'example')
-rw-r--r-- | example/simple.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/example/simple.c b/example/simple.c index 1f92bbe7..21f333c7 100644 --- a/example/simple.c +++ b/example/simple.c @@ -2,6 +2,7 @@ #include <stdio.h> #include <stdlib.h> #include <time.h> +#include <inttypes.h> #include <wayland-server.h> #include <GLES3/gl3.h> #include <wlr/backend.h> @@ -54,6 +55,8 @@ void output_add(struct wl_listener *listener, void *data) { struct wlr_output *output = data; struct state *state = wl_container_of(listener, state, output_add); fprintf(stderr, "Output '%s' added\n", output->name); + fprintf(stderr, "%s %s %"PRId32"mm x %"PRId32"mm\n", output->make, output->model, + output->phys_width, output->phys_height); wlr_output_set_mode(output, output->modes->items[0]); struct output_state *ostate = calloc(1, sizeof(struct output_state)); ostate->output = output; |