Skip to content
Snippets Groups Projects
Unverified Commit 5c81aaef authored by John's avatar John Committed by GitHub
Browse files

Merge pull request #157 from StarArawn/fix-image-dpi

Fixed issue with images and DPI.
parents 3164adeb ea58794f
No related branches found
No related tags found
No related merge requests found
...@@ -18,8 +18,8 @@ pub fn extract_images(render_command: &RenderPrimitive, dpi: f32) -> Vec<Extract ...@@ -18,8 +18,8 @@ pub fn extract_images(render_command: &RenderPrimitive, dpi: f32) -> Vec<Extract
vec![ExtractQuadBundle { vec![ExtractQuadBundle {
extracted_quad: ExtractedQuad { extracted_quad: ExtractedQuad {
rect: Rect { rect: Rect {
min: Vec2::new(layout.posx, layout.posy) * dpi, min: Vec2::new(layout.posx, layout.posy),
max: Vec2::new(layout.posx + layout.width, layout.posy + layout.height) * dpi, max: Vec2::new(layout.posx + layout.width, layout.posy + layout.height),
}, },
color: Color::WHITE, color: Color::WHITE,
vertex_index: 0, vertex_index: 0,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment