aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drmtools.c2
1 files changed, 1 insertions, 1 deletions
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;