Fix scale factor of text box

This commit is contained in:
Jeremy Soller 2023-11-12 18:42:32 -07:00
parent 01050b8eea
commit 613092f9d5

View file

@ -357,7 +357,10 @@ where
handle,
Rectangle::new(
image_position,
Size::new(image_size.width as f32, image_size.height as f32),
Size::new(
image_size.width as f32 / scale_factor,
image_size.height as f32 / scale_factor,
),
),
[0.0; 4],
);