Apply scale_factor to sizing tasks in window

This commit is contained in:
Héctor Ramón Jiménez 2025-09-02 23:33:42 +02:00
parent 74b792b608
commit c65bfd1afb
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -1194,7 +1194,10 @@ fn run_action<'a, P, C>(
winit::dpi::LogicalSize {
width: size.width,
height: size.height,
},
}
.to_physical::<f32>(f64::from(
window.state.scale_factor(),
)),
);
}
}
@ -1205,6 +1208,9 @@ fn run_action<'a, P, C>(
width: size.width,
height: size.height,
}
.to_physical::<f32>(f64::from(
window.state.scale_factor(),
))
}));
}
}
@ -1215,6 +1221,9 @@ fn run_action<'a, P, C>(
width: size.width,
height: size.height,
}
.to_physical::<f32>(f64::from(
window.state.scale_factor(),
))
}));
}
}
@ -1225,6 +1234,9 @@ fn run_action<'a, P, C>(
width: size.width,
height: size.height,
}
.to_physical::<f32>(f64::from(
window.state.scale_factor(),
))
}));
}
}