libdrm/mode: align subpixel results
authorDave Airlie <airlied@linux.ie>
Wed, 22 Apr 2009 10:25:40 +0000 (20:25 +1000)
committerDave Airlie <airlied@linux.ie>
Wed, 22 Apr 2009 10:25:40 +0000 (20:25 +1000)
libdrm/xf86drmMode.c

index 872604f..ea11207 100644 (file)
@@ -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;