projects
/
profile
/
ivi
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96df9b1
)
mode: copy back the mode if is valid correctly
author
Dave Airlie
<airlied@redhat.com>
Mon, 3 Dec 2007 05:27:49 +0000
(15:27 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Mon, 3 Dec 2007 05:30:05 +0000
(15:30 +1000)
libdrm/xf86drmMode.c
patch
|
blob
|
history
diff --git
a/libdrm/xf86drmMode.c
b/libdrm/xf86drmMode.c
index
cf59673
..
bb7be13
100644
(file)
--- a/
libdrm/xf86drmMode.c
+++ b/
libdrm/xf86drmMode.c
@@
-263,7
+263,9
@@
drmModeCrtcPtr drmModeGetCrtc(int fd, uint32_t crtcId)
r->crtc_id = crtc.crtc_id;
r->x = crtc.x;
r->y = crtc.y;
- r->mode = crtc.mode;
+ r->mode_valid = crtc.mode_valid;
+ if (r->mode_valid)
+ memcpy(&r->mode, &crtc.mode, sizeof(struct drm_mode_modeinfo));
r->buffer_id = crtc.fb_id;
r->gamma_size = crtc.gamma_size;
r->count_outputs = crtc.count_outputs;