libdrm/mode: align subpixel results

main
Dave Airlie 2009-04-22 20:25:40 +10:00
parent a1e3ab9e55
commit 412d370b9a
1 changed files with 2 additions and 1 deletions

View File

@ -395,7 +395,8 @@ drmModeConnectorPtr drmModeGetConnector(int fd, uint32_t connector_id)
r->connection = conn.connection; r->connection = conn.connection;
r->mmWidth = conn.mm_width; r->mmWidth = conn.mm_width;
r->mmHeight = conn.mm_height; 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; r->count_modes = conn.count_modes;
/* TODO we should test if these alloc & cpy fails. */ /* TODO we should test if these alloc & cpy fails. */
r->count_props = conn.count_props; r->count_props = conn.count_props;