From a3c6970a50a3c769aebce2bcb17cd9d9febe4354 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Tue, 28 Jan 2025 12:05:07 -0500 Subject: Move to GLFW for transparent clickthrough overlay --- src/framebuffer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/framebuffer.rs') diff --git a/src/framebuffer.rs b/src/framebuffer.rs index f97a967..b3ce859 100644 --- a/src/framebuffer.rs +++ b/src/framebuffer.rs @@ -15,7 +15,7 @@ impl Framebuffer { let (windoww, windowh): (f32, f32) = ctx.window.inner_size().into(); #[cfg(not(target_arch = "wasm32"))] let (windoww, windowh) = { - let (w, h) = ctx.window.size(); + let (w, h) = ctx.window.borrow().get_size(); (w as f32, h as f32) }; let ratio = ctx.compute_upscale(windoww as _, windowh as _) as f32; -- cgit v1.2.3