From c486aff9afd063203dac725c7f1bff9ba29e2634 Mon Sep 17 00:00:00 2001 From: mundusnine Date: Sat, 10 Aug 2024 15:54:40 -0400 Subject: [PATCH] Add support for GetMonitorWidth/Height --- raylib.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/raylib.js b/raylib.js index 6e48efd..9c14e1b 100644 --- a/raylib.js +++ b/raylib.js @@ -129,6 +129,12 @@ class RaylibJs { GetScreenHeight() { return this.ctx.canvas.height; } + GetMonitorWidth(monitor){ + return window.innerWidth; + } + GetMonitorHeight(monitor){ + return window.innerHeight; + } GetFrameTime() { // TODO: This is a stopgap solution to prevent sudden jumps in dt when the user switches to a differen tab.