summaryrefslogtreecommitdiff
path: root/libdrm
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2009-04-22 20:25:40 +1000
committerDave Airlie <airlied@linux.ie>2009-04-22 20:25:40 +1000
commit412d370b9ae4b2882691863a1c5e13a507574e92 (patch)
tree260a5e8d44cf26abb6ce0e849e5c02bfcd6bd195 /libdrm
parenta1e3ab9e55047c08a4006ec389c1a99b72bc672c (diff)
libdrm/mode: align subpixel results
Diffstat (limited to 'libdrm')
-rw-r--r--libdrm/xf86drmMode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdrm/xf86drmMode.c b/libdrm/xf86drmMode.c
index 872604ff..ea11207e 100644
--- a/libdrm/xf86drmMode.c
+++ b/libdrm/xf86drmMode.c
@@ -395,7 +395,8 @@ drmModeConnectorPtr drmModeGetConnector(int fd, uint32_t connector_id)
r->connection = conn.connection;
r->mmWidth = conn.mm_width;
r->mmHeight = conn.mm_height;
- r->subpixel = conn.subpixel;
+ /* convert subpixel from kernel to userspace */
+ r->subpixel = conn.subpixel + 1;
r->count_modes = conn.count_modes;
/* TODO we should test if these alloc & cpy fails. */
r->count_props = conn.count_props;