summaryrefslogtreecommitdiff
path: root/src/framebuffer.rs
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2025-01-28 12:05:07 -0500
committerLLLL Colonq <llll@colonq>2025-01-28 12:06:04 -0500
commita3c6970a50a3c769aebce2bcb17cd9d9febe4354 (patch)
tree1f1d2940997b9fd5d326b7eb10dcff84c9a7e754 /src/framebuffer.rs
parent39a0ff935e6298193188d8569ae3cbb96807f34c (diff)
Move to GLFW for transparent clickthrough overlay
Diffstat (limited to 'src/framebuffer.rs')
-rw-r--r--src/framebuffer.rs2
1 files changed, 1 insertions, 1 deletions
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;