compositor-drm: Check for OUTPUT_CONFIG_OFF instead of using strcmp()

A call to strcmp() is already made in output_section_done() and
output->config is set appropriately if mode is "off". There is
no need to duplicate that in create_output_for_connector().
This commit is contained in:
Ander Conselvan de Oliveira 2012-08-09 16:45:01 +03:00 committed by Kristian Høgsberg
parent 383b671ccf
commit dc79e6d289

View File

@ -1409,7 +1409,7 @@ create_output_for_connector(struct drm_compositor *ec,
} }
} }
if (o && strcmp("off", o->mode) == 0) { if (o && o->config == OUTPUT_CONFIG_OFF) {
weston_log("Disabling output %s\n", o->name); weston_log("Disabling output %s\n", o->name);
drmModeSetCrtc(ec->drm.fd, output->crtc_id, drmModeSetCrtc(ec->drm.fd, output->crtc_id,