Skip to content
Snippets Groups Projects
Commit e2e15acc authored by Derek Foreman's avatar Derek Foreman
Browse files

compositor: change rounding in weston_surface_to_buffer_rect()


Rounding both corners of the rectangle down can result in a 0
width/height rectangle before passing to weston_transformed_rect.

This showed up as missing damage in weston-simple-damage (the
bouncing ball would leave green trails when --use-viewport was
used)

Reviewed-by: default avatarDaniel Stone <daniels@collabora.co.uk>
Reviewed-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
Signed-off-by: default avatarDerek Foreman <derekf@osg.samsung.com>
parent 5ffbfffa
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment