Skip to content

Commit 94ff79b

Browse files
authored
Merge pull request #16 from hatoo/fix-for-my-phone
Some workaround for my Redmagic 10 pro
2 parents 0789125 + fb75f41 commit 94ff79b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ fn main() {
5656
DefaultPlugins.set(WindowPlugin {
5757
primary_window: Some(Window {
5858
title: "tempo-trainer".to_string(),
59+
// Workaround for hi-dpi phones
60+
#[cfg(target_arch = "wasm32")]
61+
resolution: bevy::window::WindowResolution::new(800.0, 600.0),
5962
fit_canvas_to_parent: true,
6063
..Default::default()
6164
}),

0 commit comments

Comments
 (0)