Rename Rectangle::round to snap
Also use `ceil` instead of `round`. Closes #380.
This commit is contained in:
parent
b96d87ff69
commit
94af348846
5 changed files with 8 additions and 9 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue