aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kurtz2014-05-01 06:56:43 -0500
committerVille Syrjälä2014-05-01 15:38:13 -0500
commit828c3e85be697acfeb518793dbada0cca8a691f9 (patch)
tree08d72a5d5ea396844b0fc2e737537654bec65565 /xf86drmMode.c
parentbb1f4263b7ce169ab484b8463f0bf630a1ab4f2b (diff)
downloadexternal-libgbm-828c3e85be697acfeb518793dbada0cca8a691f9.tar.gz
external-libgbm-828c3e85be697acfeb518793dbada0cca8a691f9.tar.xz
external-libgbm-828c3e85be697acfeb518793dbada0cca8a691f9.zip
Use signed location for drmModeSetPlane
DRM_IOCTL_MODE_SETPLANE crtc_x, crtc_y are s32. This is to allow a destination location that is partially off screen. Make this more obvious to users of libdrm by using signed crtc_x/_y parameters for drmModeSetPlane() as well. Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Diffstat (limited to 'xf86drmMode.c')
-rw-r--r--xf86drmMode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xf86drmMode.c b/xf86drmMode.c
index a6bb2ee4..7ca89b37 100644
--- a/xf86drmMode.c
+++ b/xf86drmMode.c
@@ -906,7 +906,7 @@ int drmModePageFlip(int fd, uint32_t crtc_id, uint32_t fb_id,
906 906
907int drmModeSetPlane(int fd, uint32_t plane_id, uint32_t crtc_id, 907int drmModeSetPlane(int fd, uint32_t plane_id, uint32_t crtc_id,
908 uint32_t fb_id, uint32_t flags, 908 uint32_t fb_id, uint32_t flags,
909 uint32_t crtc_x, uint32_t crtc_y, 909 int32_t crtc_x, int32_t crtc_y,
910 uint32_t crtc_w, uint32_t crtc_h, 910 uint32_t crtc_w, uint32_t crtc_h,
911 uint32_t src_x, uint32_t src_y, 911 uint32_t src_x, uint32_t src_y,
912 uint32_t src_w, uint32_t src_h) 912 uint32_t src_w, uint32_t src_h)