bevy icon indicating copy to clipboard operation
bevy copied to clipboard

use unrounded size to clip ui nodes

Open robtfm opened this issue 1 year ago • 0 comments

Objective

clipping sometimes uses too-tight bounds when nodes are not aligned to pixel boundaries.

Solution

use the unrounded size, and floor/ceil on the min/max of the clipping bounds.

before: overflow error

after: overflow fixed

robtfm avatar Feb 09 '24 00:02 robtfm