diff options
author | Canop <cano.petrole@gmail.com> | 2020-09-30 22:01:29 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2020-09-30 22:01:29 +0200 |
commit | 8069eeb2802122f18122d2fe8dbd464871cf819e (patch) | |
tree | 8411dd9bbb13938bdc53db580a70f13ac9db5d0d /src/image/image_view.rs | |
parent | c5dc8563a39247b7d97402757eb07dc8054d99cb (diff) |
version 1.0.1v1.0.1
Diffstat (limited to 'src/image/image_view.rs')
-rw-r--r-- | src/image/image_view.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/image/image_view.rs b/src/image/image_view.rs index c09e036..4e30562 100644 --- a/src/image/image_view.rs +++ b/src/image/image_view.rs @@ -24,7 +24,6 @@ use { termimad::{Area}, }; - /// an already resized image, with the dimensions it /// was computed for (which may be different from the /// dimensions we got) @@ -72,11 +71,7 @@ impl ImageView { let img = time!( Debug, "resize image", - self.source_img.resize( - area.width as u32, - (area.height*2) as u32, - FilterType::Triangle, - ), + self.source_img.resize(target_width, target_height, FilterType::Triangle), ); self.display_img = Some(CachedImage { target_width, |