Skip to content

Commit 3e9538c

Browse files
committed
fix: render web canvas at high dpi
1 parent 0e63917 commit 3e9538c

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fn window_conf() -> Conf {
77
window_height: skifree_rs::WINDOW_HEIGHT as i32,
88
window_resizable: false,
99
fullscreen: false,
10-
high_dpi: false,
10+
high_dpi: cfg!(target_arch = "wasm32"),
1111
sample_count: 1,
1212
..Default::default()
1313
}

web/index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
height: 640px;
2828
aspect-ratio: 3 / 4;
2929
outline: none;
30-
image-rendering: crisp-edges;
31-
image-rendering: pixelated;
3230
}
3331

3432
#status {

0 commit comments

Comments
 (0)