Fix regression causing pasted images to have a zero-size transform (#2238)

* Use the identity matrix as the default for an image frame

* Fix all usages to be equivalent to their pre-refactor versions, opting to keep ZERO not IDENTITY as the default image size

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
James Lindsay
2025-01-29 21:09:02 +00:00
committed by GitHub
parent dbf917ef71
commit c5a3c32114
5 changed files with 10 additions and 5 deletions

View File

@@ -627,7 +627,7 @@ fn mandelbrot(footprint: Footprint) -> ImageFrameTable<Color> {
..Default::default()
},
transform: DAffine2::from_translation(offset) * DAffine2::from_scale(size),
..Default::default()
alpha_blending: Default::default(),
};
ImageFrameTable::new(result)