Skip to content

Commit

Permalink
Fix canvas size on wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciubix8513 committed Aug 13, 2024
1 parent dbf1d31 commit 7eea3ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ impl<T> State<T> {
.expect("Failed to create the window");
//Resize window to the canvas size
//TODO Find a better solution to this hack
_ = window.request_inner_size(PhysicalSize::new(width, height));
// _ = window.request_inner_size(PhysicalSize::new(width, height));
}

#[cfg(not(target_arch = "wasm32"))]
Expand Down

0 comments on commit 7eea3ac

Please sign in to comment.