Fix hi res image zoom out
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Isaac Mills 2024-03-19 12:19:31 -04:00
parent e512fc881b
commit 074e160cdb
Signed by: fnmain
GPG key ID: B67D7410F33A0F61

View file

@ -764,10 +764,13 @@ impl eframe::App for Portfolio {
), ),
); );
hi_image if t > 0.0 {
.clone() hi_image.clone()
.tint(Color32::WHITE.gamma_multiply(zoom_view_opacity)) } else {
.paint_at(&ui, image_rect.lerp_towards(&fs_rect, t)); image.clone()
}
.tint(Color32::WHITE.gamma_multiply(zoom_view_opacity))
.paint_at(&ui, image_rect.lerp_towards(&fs_rect, t));
} else { } else {
image image
.clone() .clone()