Fix scale factor of text box
This commit is contained in:
parent
01050b8eea
commit
613092f9d5
1 changed files with 4 additions and 1 deletions
|
|
@ -357,7 +357,10 @@ where
|
||||||
handle,
|
handle,
|
||||||
Rectangle::new(
|
Rectangle::new(
|
||||||
image_position,
|
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],
|
[0.0; 4],
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue