Fix hi res image zoom out
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
e512fc881b
commit
074e160cdb
1 changed files with 7 additions and 4 deletions
|
@ -764,8 +764,11 @@ impl eframe::App for Portfolio {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
hi_image
|
if t > 0.0 {
|
||||||
.clone()
|
hi_image.clone()
|
||||||
|
} else {
|
||||||
|
image.clone()
|
||||||
|
}
|
||||||
.tint(Color32::WHITE.gamma_multiply(zoom_view_opacity))
|
.tint(Color32::WHITE.gamma_multiply(zoom_view_opacity))
|
||||||
.paint_at(&ui, image_rect.lerp_towards(&fs_rect, t));
|
.paint_at(&ui, image_rect.lerp_towards(&fs_rect, t));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue