summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward O'Callaghan <funfunctor@folklore1984.net>2017-03-07 01:14:46 +1100
committerEdward O'Callaghan <funfunctor@folklore1984.net>2017-03-07 01:14:46 +1100
commitb1d46ae17dacf9f8ad6512ede19fd96c193315d0 (patch)
tree1d249bebb81f159191819e5a42d758f988105469
parent897875051d5e8f08fc83052ff8d8dcd344443987 (diff)
src/drm.c: fix crtc_id not-found bugHEADmaster
Signed-off-by: Edward O'Callaghan <funfunctor@folklore1984.net>
-rw-r--r--src/drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drm.c b/src/drm.c
index f6689c3..487b6ad 100644
--- a/src/drm.c
+++ b/src/drm.c
@@ -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;
}