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/backend.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'glow/src/backend.rs') diff --git a/glow/src/backend.rs b/glow/src/backend.rs index 7939311c..882dd605 100644 --- a/glow/src/backend.rs +++ b/glow/src/backend.rs @@ -75,7 +75,7 @@ impl Backend { layer: &Layer<'_>, target_height: u32, ) { - let mut bounds = (layer.bounds * scale_factor).round(); + let mut bounds = (layer.bounds * scale_factor).snap(); bounds.height = bounds.height.min(target_height); if !layer.quads.is_empty() { -- cgit