aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/atomic.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-06-30 12:57:48 +0100
committerGitHub <noreply@github.com>2018-06-30 12:57:48 +0100
commit167105e6069d2dd66cd2d472c2a6b67703838125 (patch)
treee6626f03fdd94c7832c4b5cb3b97e2a61cf6602e /backend/drm/atomic.c
parent63eb720871004219826f16e0a79a0014ac5516e4 (diff)
parent0c2a64df18f8740ab795fb2970d1954a8aac34b1 (diff)
Merge pull request #1101 from martinetd/static-analysis
Static analysis fixes
Diffstat (limited to 'backend/drm/atomic.c')
-rw-r--r--backend/drm/atomic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/drm/atomic.c b/backend/drm/atomic.c
index acc56e65..41b6424c 100644
--- a/backend/drm/atomic.c
+++ b/backend/drm/atomic.c
@@ -83,8 +83,8 @@ 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->surf.width << 16);
- atomic_add(atom, id, props->src_h, plane->surf.height << 16);
+ atomic_add(atom, id, props->src_w, (uint64_t)plane->surf.width << 16);
+ atomic_add(atom, id, props->src_h, (uint64_t)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);