summaryrefslogtreecommitdiff
path: root/libdrm
diff options
context:
space:
mode:
Diffstat (limited to 'libdrm')
-rw-r--r--libdrm/xf86drmMode.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libdrm/xf86drmMode.c b/libdrm/xf86drmMode.c
index b48ca838..c4403b1c 100644
--- a/libdrm/xf86drmMode.c
+++ b/libdrm/xf86drmMode.c
@@ -286,7 +286,7 @@ err_allocs:
return 0;
}
-#if 0
+
int drmModeSetCrtc(
int fd, uint32_t crtcId, uint32_t bufferId,
uint32_t x, uint32_t y, uint32_t modeId,
@@ -302,15 +302,16 @@ int drmModeSetCrtc(
crtc.x = x;
crtc.y = y;
- crtc.crtcId = crtcId;
- crtc.bufferId = bufferId;
+ crtc.crtc_id = crtcId;
+ crtc.fb_id = bufferId;
crtc.set_outputs = outputs;
crtc.count_outputs = count;
crtc.mode = modeId;
- // return ioctl(fd, DRM_IOCTL_MODE_SETCRTC, &crtc);
+ return ioctl(fd, DRM_IOCTL_MODE_SETCRTC, &crtc);
}
+#if 0
drmModeGammaTriplePtr drmModeGetCrtcGamma(int fd, uint32_t crtc, int *count)
{
/* TODO impl */