diff options
-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; } |