diff options
author | Daniel Schadt <kingdread@gmx.de> | 2020-03-24 13:26:21 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2020-03-24 13:26:21 +0100 |
commit | 4327d932613b329e6e3b33d78f55662127bd4203 (patch) | |
tree | eb1101e05623257f71eb4fe02e9dd6c835e0afee /src/render.rs | |
parent | e8ce405349f2473e1353632bd455261b8ef9d479 (diff) | |
download | kondou-4327d932613b329e6e3b33d78f55662127bd4203.tar.gz kondou-4327d932613b329e6e3b33d78f55662127bd4203.tar.bz2 kondou-4327d932613b329e6e3b33d78f55662127bd4203.zip |
update dependencies
Diffstat (limited to 'src/render.rs')
-rw-r--r-- | src/render.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/render.rs b/src/render.rs index 3560b5a..cb6a4fb 100644 --- a/src/render.rs +++ b/src/render.rs @@ -1,8 +1,8 @@ use super::api::{Api, ApiError, Skill, Specialization, Trait}; use super::bt::{BuildTemplate, TraitChoice, Traitline}; use image::{ - imageops, CatmullRom, DynamicImage, GenericImage, GenericImageView, ImageBuffer, Pixel, - Primitive, Rgba, RgbaImage, + imageops, imageops::FilterType::CatmullRom, DynamicImage, GenericImage, GenericImageView, + ImageBuffer, Pixel, Primitive, Rgba, RgbaImage, }; use imageproc::{drawing, rect::Rect}; use num_traits::{Num, NumCast}; @@ -165,7 +165,7 @@ impl<'r> Renderer<'r> { self.options.skill_size, CatmullRom, ); - buffer.copy_from(&img, i as u32 * self.options.skill_size, 0); + buffer.copy_from(&img, i as u32 * self.options.skill_size, 0)?; } } Ok(buffer) @@ -391,7 +391,7 @@ impl<'r> Renderer<'r> { Alignment::Center => half(width - image.width()), Alignment::Right => width - image.width(), }; - buffer.copy_from(image, pos_x, pos_y); + buffer.copy_from(image, pos_x, pos_y)?; pos_y += image.height(); } |