From 94af34884667e78e231fb1904ae3e9fa785c9a7a Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 2 Jun 2020 04:38:55 +0200 Subject: Rename `Rectangle::round` to `snap` Also use `ceil` instead of `round`. Closes #380. --- wgpu/src/triangle.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'wgpu/src/triangle.rs') diff --git a/wgpu/src/triangle.rs b/wgpu/src/triangle.rs index 22a27143..fe2388a3 100644 --- a/wgpu/src/triangle.rs +++ b/wgpu/src/triangle.rs @@ -326,8 +326,7 @@ impl Pipeline { for (i, (vertex_offset, index_offset, indices)) in offsets.into_iter().enumerate() { - let clip_bounds = - (meshes[i].clip_bounds * scale_factor).round(); + let clip_bounds = (meshes[i].clip_bounds * scale_factor).snap(); render_pass.set_scissor_rect( clip_bounds.x, -- cgit