rr-ribbon-w6: picture trial reads the Response directly and builds Scale with Scale::new

This commit is contained in:
Martin Ball committed 2026-11-18 21:36:36 +00:00
1 parent 0acb8500bf
commit 60bfbbb878
1 file changed
+2 -2
+2 -2
View File
@@ -23,9 +23,9 @@ fn a_device_pixel_picture_keeps_one_texel_to_a_pixel_at_every_scale() {
let size = Rc::new(Cell::new(Vec2::ZERO));
let seen = size.clone();
let mut fixture = Fixture::new(move |ui| {
seen.set(Picture::new("Gradient", 1, &image).extent(PictureSize::DevicePixels).show(ui).response.rect.size());
seen.set(Picture::new("Gradient", 1, &image).extent(PictureSize::DevicePixels).show(ui).rect.size());
});
fixture.scale(Scale(scale));
fixture.scale(Scale::new(scale));
fixture.settle();
let device = size.get() * scale;
assert!(