Skip to content

Commit

Permalink
Do not divide width/height of surface texture by two
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp committed Oct 17, 2021
1 parent b78bcd5 commit f86db0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub fn run(filename: &OsStr) -> Result<()> {
let window_size = window.inner_size();
let scale_factor = window.scale_factor();
let surface_texture =
SurfaceTexture::new(window_size.width / 2, window_size.height / 2, &window);
SurfaceTexture::new(window_size.width, window_size.height, &window);
let pixels = Pixels::new(WIDTH, HEIGHT, surface_texture)?;
let gui = Gui::new(window_size.width, window_size.height, scale_factor, &pixels);

Expand Down

0 comments on commit f86db0b

Please sign in to comment.