projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1e3ab9
)
libdrm/mode: align subpixel results
author
Dave Airlie
<airlied@linux.ie>
Wed, 22 Apr 2009 10:25:40 +0000
(20:25 +1000)
committer
Dave Airlie
<airlied@linux.ie>
Wed, 22 Apr 2009 10:25:40 +0000
(20:25 +1000)
libdrm/xf86drmMode.c
patch
|
blob
|
history
diff --git
a/libdrm/xf86drmMode.c
b/libdrm/xf86drmMode.c
index
872604f
..
ea11207
100644
(file)
--- 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;