aboutsummaryrefslogtreecommitdiffstats
path: root/drmtest.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-04-12 12:39:09 +0200
committerGerd Hoffmann <kraxel@redhat.com>2017-04-12 12:39:09 +0200
commit8e4aa8e602b7400c9a9edafbfc9c966bd85ec92c (patch)
treee69a28d0e7baece34413e7feb0b2319be44184c4 /drmtest.c
parentf4622608baf58fed2d7d2b6cf2326b595c906d0d (diff)
downloaddrminfo-8e4aa8e602b7400c9a9edafbfc9c966bd85ec92c.tar.gz
info tweaks
Diffstat (limited to 'drmtest.c')
-rw-r--r--drmtest.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drmtest.c b/drmtest.c
index cc602fb..b014ed2 100644
--- a/drmtest.c
+++ b/drmtest.c
@@ -211,10 +211,15 @@ static void drm_init_dumb_fb(void)
static void drm_draw_dumb_fb(void)
{
+ char name[64];
+ char info[80];
cairo_t *cr;
+ drm_conn_name(conn, name, sizeof(name));
+ snprintf(info, sizeof(info), "%s: %dx%d",
+ name, mode->hdisplay, mode->vdisplay);
cr = cairo_create(cs);
- render_test(cr, mode->hdisplay, mode->vdisplay);
+ render_test(cr, mode->hdisplay, mode->vdisplay, info);
cairo_destroy(cr);
drmModeDirtyFB(fd, fb_id, 0, 0);
}