From 9459bf32f7cd831d53fdac657501b9236e9eaf04 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 11 Sep 2017 08:22:23 +0200 Subject: mode switching for drm fixup --- drmtools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drmtools.c') diff --git a/drmtools.c b/drmtools.c index 86662cb..b1eae37 100644 --- a/drmtools.c +++ b/drmtools.c @@ -201,7 +201,7 @@ static int drm_show_fb(struct drmfb *fb) rc = drmModeSetCrtc(drm_fd, drm_enc->crtc_id, fb->id, 0, 0, &drm_conn->connector_id, 1, - &drm_conn->modes[0]); + drm_mode); if (rc < 0) { fprintf(stderr, "drm: drmModeSetCrtc() failed\n"); return -1; -- cgit