Skip to content

Commit

Permalink
actually use dpi_scale() on wasm backend
Browse files Browse the repository at this point in the history
  • Loading branch information
kampffrosch94 authored and not-fl3 committed Feb 28, 2025
1 parent 510ab74 commit efa0e4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/native/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@ where
REQUESTS.with(|r| *r.borrow_mut() = Some(rx));
let w = unsafe { canvas_width() as _ };
let h = unsafe { canvas_height() as _ };
let dpi_scale = unsafe { dpi_scale() };
let clipboard = Box::new(Clipboard);
crate::set_display(NativeDisplayData {
blocking_event_loop: conf.platform.blocking_event_loop,
dpi_scale,
..NativeDisplayData::new(w, h, tx, clipboard)
});
EVENT_HANDLER.with(|g| {
Expand Down

0 comments on commit efa0e4f

Please sign in to comment.