Fix raqote example on high-DPI displays (#129)

This commit is contained in:
Jay Oster 2020-12-13 19:37:35 -08:00 committed by GitHub
parent 70ff52948b
commit cb315ec0a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ fn main() -> Result<(), Error> {
let surface_texture = SurfaceTexture::new(window_size.width, window_size.height, &window); let surface_texture = SurfaceTexture::new(window_size.width, window_size.height, &window);
let pixels = Pixels::new(WIDTH, HEIGHT, surface_texture)?; let pixels = Pixels::new(WIDTH, HEIGHT, surface_texture)?;
let shapes = Shapes::new(window_size.width, window_size.height); let shapes = Shapes::new(WIDTH, HEIGHT);
(pixels, shapes) (pixels, shapes)
}; };