diff options
author | Denys Séguret <denys.seguret@gmail.com> | 2020-08-04 07:46:17 +0200 |
---|---|---|
committer | Denys Séguret <denys.seguret@gmail.com> | 2020-08-04 07:46:17 +0200 |
commit | 522ecdb78e17c1e98fef55419794282b781ef88a (patch) | |
tree | 19919dcdfe40dde795a9a106fed7cb8ac8a705f2 /src/image/image_view.rs | |
parent | 744bcd06de725fa553987be7149331f7ce2bdc4a (diff) |
fix image preview size computation
Diffstat (limited to 'src/image/image_view.rs')
-rw-r--r-- | src/image/image_view.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image/image_view.rs b/src/image/image_view.rs index 0a83821..7a4fbb3 100644 --- a/src/image/image_view.rs +++ b/src/image/image_view.rs @@ -114,7 +114,7 @@ impl ImageView { debug!("img view area: {:?}", area); let img = self.img.resize( area.width as u32, - area.height as u32, + (area.height*2) as u32, FilterType::Triangle, //FilterType::Nearest, ); |