aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/iface_atomic.c
diff options
context:
space:
mode:
authorScott Anderson <ascent12@hotmail.com>2017-09-30 20:52:58 +1300
committerScott Anderson <ascent12@hotmail.com>2017-09-30 20:52:58 +1300
commit096249a2a1dc604b062a6fef6c4ca56065724d79 (patch)
tree81df91b26fd1d2b20722e6ac23f053fc27c2bd0a /backend/drm/iface_atomic.c
parentd0708b1a3a3fb9fd3a073d6c5406b26e8bf617e9 (diff)
Split DRM rendering to its own file
Diffstat (limited to 'backend/drm/iface_atomic.c')
-rw-r--r--backend/drm/iface_atomic.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/backend/drm/iface_atomic.c b/backend/drm/iface_atomic.c
index 75a3c33a..ce5de091 100644
--- a/backend/drm/iface_atomic.c
+++ b/backend/drm/iface_atomic.c
@@ -84,10 +84,10 @@ static void set_plane_props(struct atomic *atom, struct wlr_drm_plane *plane,
// The src_* properties are in 16.16 fixed point
atomic_add(atom, id, props->src_x, 0);
atomic_add(atom, id, props->src_y, 0);
- atomic_add(atom, id, props->src_w, plane->width << 16);
- atomic_add(atom, id, props->src_h, plane->height << 16);
- atomic_add(atom, id, props->crtc_w, plane->width);
- atomic_add(atom, id, props->crtc_h, plane->height);
+ atomic_add(atom, id, props->src_w, plane->surf.width << 16);
+ atomic_add(atom, id, props->src_h, plane->surf.height << 16);
+ atomic_add(atom, id, props->crtc_w, plane->surf.width);
+ atomic_add(atom, id, props->crtc_h, plane->surf.height);
atomic_add(atom, id, props->fb_id, fb_id);
atomic_add(atom, id, props->crtc_id, crtc_id);
if (set_crtc_xy) {