From 069b8bca0dc60077eba891566f32aa91532e123c Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 11 Sep 2017 08:10:07 +0200 Subject: mode switching for drm --- drmtools-egl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drmtools-egl.c') diff --git a/drmtools-egl.c b/drmtools-egl.c index 49932df..50a3408 100644 --- a/drmtools-egl.c +++ b/drmtools-egl.c @@ -163,7 +163,7 @@ static void drm_egl_flush_display(bool second) bo = newbo; } -gfxstate *drm_init_egl(const char *device, const char *output) +gfxstate *drm_init_egl(const char *device, const char *output, const char *mode) { gfxstate *gfx; char dev[64]; @@ -175,7 +175,7 @@ gfxstate *drm_init_egl(const char *device, const char *output) } fprintf(stderr, "trying drm/egl: %s ...\n", dev); - if (drm_init_dev(dev, output) < 0) + if (drm_init_dev(dev, output, mode) < 0) return NULL; if (drm_setup_egl() < 0) return NULL; -- cgit