summaryrefslogtreecommitdiffstats
path: root/wgpu/src/geometry.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-09-07 05:45:51 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-09-07 05:45:51 +0200
commit1f263051b6c2d2f2a02633d8a6277c772ae8e7f9 (patch)
tree6df6d652031ee57382218a388037dd4aeca2cb1e /wgpu/src/geometry.rs
parent5371fae21a4c1110a37e7183e794cba234598d9c (diff)
downloadiced-1f263051b6c2d2f2a02633d8a6277c772ae8e7f9.tar.gz
iced-1f263051b6c2d2f2a02633d8a6277c772ae8e7f9.tar.bz2
iced-1f263051b6c2d2f2a02633d8a6277c772ae8e7f9.zip
Implement `scale` in terms of `scale_nonuniform`
Diffstat (limited to 'wgpu/src/geometry.rs')
-rw-r--r--wgpu/src/geometry.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/wgpu/src/geometry.rs b/wgpu/src/geometry.rs
index 2cd07a27..64b98469 100644
--- a/wgpu/src/geometry.rs
+++ b/wgpu/src/geometry.rs
@@ -447,9 +447,7 @@ impl Frame {
/// Applies a uniform scaling to the current transform of the [`Frame`].
#[inline]
pub fn scale(&mut self, scale: f32) {
- self.transforms.current.raw =
- self.transforms.current.raw.pre_scale(scale, scale);
- self.transforms.current.is_identity = false;
+ self.scale_nonuniform(Vector { x: scale, y: scale });
}
/// Applies a non-uniform scaling to the current transform of the [`Frame`].