summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoram Park <boram1288.park@samsung.com>2016-03-03 17:47:04 +0900
committerBoram Park <boram1288.park@samsung.com>2016-03-03 17:47:04 +0900
commiteba9e2a6ae42995524718c516d7abd310055f3b2 (patch)
treebcb6f7c3bfd22e4cbf6343d56dd8b24754671d1d
parentae7f2cbed8c262530189ec50a9f1d55e423f0e49 (diff)
downloadlibtdm-drm-eba9e2a6ae42995524718c516d7abd310055f3b2.tar.gz
libtdm-drm-eba9e2a6ae42995524718c516d7abd310055f3b2.tar.bz2
libtdm-drm-eba9e2a6ae42995524718c516d7abd310055f3b2.zip
Change-Id: I1717c95dc68d3deace08cbd333d8ea08415d3742
-rw-r--r--src/tdm_drm_display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tdm_drm_display.c b/src/tdm_drm_display.c
index 3839481..20ca626 100644
--- a/src/tdm_drm_display.c
+++ b/src/tdm_drm_display.c
@@ -587,11 +587,11 @@ tdm_drm_display_create_output_list(tdm_drm_data *drm_data)
for (j = 0; j < connector->count_props; j++) {
drmModePropertyPtr prop = drmModeGetProperty(drm_data->drm_fd,
- connector->props[i]);
+ connector->props[j]);
if (!prop)
continue;
if (!strcmp(prop->name, "DPMS")) {
- output_data->dpms_prop_id = connector->props[i];
+ output_data->dpms_prop_id = connector->props[j];
drmModeFreeProperty(prop);
break;
}