Fix raqote example on high-DPI displays (#129)
This commit is contained in:
parent
70ff52948b
commit
cb315ec0a1
|
@ -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)
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue