aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-06-07 08:42:10 -0400
committerGitHub <noreply@github.com>2017-06-07 08:42:10 -0400
commit69deb99a654846d6c94ee7fc0f1da818c5965e3e (patch)
treeefe0c6f24adc6c005838a43cf8b6f7d0796fbaba /example
parentd79f5780225d2416f3fff9dcebeac1d64110bb94 (diff)
parent632a7acb03f4c4b8d06fdf7f8d7839db27cde538 (diff)
Merge pull request #10 from ascent12/edid
Filled out more wlr_output fields.
Diffstat (limited to 'example')
-rw-r--r--example/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/example/main.c b/example/main.c
index 27d598e6..87999e11 100644
--- a/example/main.c
+++ b/example/main.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;