mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-02 12:08:02 +02:00
mode: copy back the mode if is valid correctly
This commit is contained in:
parent
96df9b11ad
commit
34bb2e733a
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue