diff options
author | Edward O'Callaghan <funfunctor@folklore1984.net> | 2017-03-07 01:14:46 +1100 |
---|---|---|
committer | Edward O'Callaghan <funfunctor@folklore1984.net> | 2017-03-07 01:14:46 +1100 |
commit | b1d46ae17dacf9f8ad6512ede19fd96c193315d0 (patch) | |
tree | 1d249bebb81f159191819e5a42d758f988105469 | |
parent | 897875051d5e8f08fc83052ff8d8dcd344443987 (diff) |
Signed-off-by: Edward O'Callaghan <funfunctor@folklore1984.net>
-rw-r--r-- | src/drm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -155,7 +155,7 @@ static int init_drm(struct drm * drm, const char *device) drm->crtc_id = encoder->crtc_id; } else { uint32_t crtc_id = find_crtc_for_connector(drm,resources,connector); - if (crtc_id == 0) { + if (crtc_id < 0) { fprintf(stderr, "no crtc found!\n"); return -1; } |