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. --- glow/src/triangle.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'glow/src/triangle.rs') diff --git a/glow/src/triangle.rs b/glow/src/triangle.rs index ee7faf83..eefd1c1f 100644 --- a/glow/src/triangle.rs +++ b/glow/src/triangle.rs @@ -176,7 +176,7 @@ impl Pipeline { let transform = transformation * Transformation::translate(origin.x, origin.y); - let clip_bounds = (*clip_bounds * scale_factor).round(); + let clip_bounds = (*clip_bounds * scale_factor).snap(); unsafe { if self.current_transform != transform { -- cgit