aboutsummaryrefslogtreecommitdiff
path: root/libdrm/xf86drmMode.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-11-15 18:31:50 +1100
committerDave Airlie <airlied@linux.ie>2007-11-15 18:31:50 +1100
commitf32688d3d011d631c18d584603d684edd9b9b512 (patch)
treec5f9b151a16ca97e4253500595487ef4dcd60074 /libdrm/xf86drmMode.c
parent1e8984a3674c89c3b5ef9b6d3747fb75e10774b3 (diff)
libdrm: add crtc/output ids to userspace interface
Diffstat (limited to 'libdrm/xf86drmMode.c')
-rw-r--r--libdrm/xf86drmMode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libdrm/xf86drmMode.c b/libdrm/xf86drmMode.c
index e7ac58ba..c3abb2df 100644
--- a/libdrm/xf86drmMode.c
+++ b/libdrm/xf86drmMode.c
@@ -265,7 +265,8 @@ drmModeCrtcPtr drmModeGetCrtc(int fd, uint32_t crtcId)
if (!(r = drmMalloc(sizeof(*r))))
return 0;
-
+
+ r->crtc_id = crtc.crtc_id;
r->x = crtc.x;
r->y = crtc.y;
r->mode = crtc.mode;
@@ -337,6 +338,7 @@ drmModeOutputPtr drmModeGetOutput(int fd, uint32_t output_id)
if(!(r = drmMalloc(sizeof(*r))))
return 0;
+ r->output_id = out.output;
r->connection = out.connection;
r->mmWidth = out.mm_width;
r->mmHeight = out.mm_height;