Push the right change this time xD
This commit is contained in:
parent
530f2de79e
commit
3d179a869a
1 changed files with 2 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ public:
|
||||||
wrapper_fb(drmModeFB2 *fb2)
|
wrapper_fb(drmModeFB2 *fb2)
|
||||||
: fb2 { fb2 }, fb_id { fb2->fb_id }, width { fb2->width }, height { fb2->height } {
|
: fb2 { fb2 }, fb_id { fb2->fb_id }, width { fb2->width }, height { fb2->height } {
|
||||||
pixel_format = fb2->pixel_format;
|
pixel_format = fb2->pixel_format;
|
||||||
modifier = fb2->modifier;
|
modifier = (fb2->flags & DRM_MODE_FB_MODIFIERS) ? fb2->modifier : DRM_FORMAT_MOD_INVALID;
|
||||||
|
|
||||||
memcpy(handles, fb2->handles, sizeof(handles));
|
memcpy(handles, fb2->handles, sizeof(handles));
|
||||||
memcpy(pitches, fb2->pitches, sizeof(pitches));
|
memcpy(pitches, fb2->pitches, sizeof(pitches));
|
||||||
|
|
@ -571,6 +571,7 @@ public:
|
||||||
sd->offsets[x] = fb->offsets[y];
|
sd->offsets[x] = fb->offsets[y];
|
||||||
sd->pitches[x] = fb->pitches[y];
|
sd->pitches[x] = fb->pitches[y];
|
||||||
sd->plane_indices[x] = y;
|
sd->plane_indices[x] = y;
|
||||||
|
|
||||||
++x;
|
++x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue