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
11
src/app.rs
11
src/app.rs
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue