diff options
Diffstat (limited to 'drm-common.c')
-rw-r--r-- | drm-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drm-common.c b/drm-common.c index 5c9cca2..eb5ac20 100644 --- a/drm-common.c +++ b/drm-common.c @@ -310,7 +310,7 @@ int init_drm(struct drm *drm, const char *device, const char *mode_str, 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 == -1) { printf("no crtc found!\n"); return -1; } |