Only update pixels_per_point when it has changed
@@ -827,10 +827,9 @@ impl Context {
pub fn set_pixels_per_point(&self, pixels_per_point: f32) {
if pixels_per_point != self.pixels_per_point() {
self.request_repaint();
- }
-
self.memory().new_pixels_per_point = Some(pixels_per_point);
}
+ }
/// Useful for pixel-perfect rendering
pub(crate) fn round_to_pixel(&self, point: f32) -> f32 {
