diff options
| author | Laytan <laytanlaats@hotmail.com> | 2025-01-15 10:37:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-15 10:37:42 +0100 |
| commit | e55b65291685c8a1fc3d70252a73f01c7c6f253c (patch) | |
| tree | 466cfed0864b171ea1eef23116e7bc7e5763b2c5 | |
| parent | 0cb04f5153548df6e6699d0bd40695b288165f69 (diff) | |
| parent | 93e8f5024e7c06bcfea2edcb431f73cde6369834 (diff) | |
Merge pull request #4678 from clindholm/glfw_get_monitor_workarea
vendor/glfw: add GetMonitorWorkarea binding
| -rw-r--r-- | vendor/glfw/bindings/bindings.odin | 1 | ||||
| -rw-r--r-- | vendor/glfw/wrapper.odin | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/vendor/glfw/bindings/bindings.odin b/vendor/glfw/bindings/bindings.odin index a4be006b0..e59239483 100644 --- a/vendor/glfw/bindings/bindings.odin +++ b/vendor/glfw/bindings/bindings.odin @@ -71,6 +71,7 @@ foreign glfw { GetPrimaryMonitor :: proc() -> MonitorHandle --- GetMonitors :: proc(count: ^c.int) -> [^]MonitorHandle --- GetMonitorPos :: proc(monitor: MonitorHandle, xpos, ypos: ^c.int) --- + GetMonitorWorkarea :: proc(monitor: MonitorHandle, xpos, ypos, width, height: ^c.int) --- GetMonitorPhysicalSize :: proc(monitor: MonitorHandle, widthMM, heightMM: ^c.int) --- GetMonitorContentScale :: proc(monitor: MonitorHandle, xscale, yscale: ^f32) --- diff --git a/vendor/glfw/wrapper.odin b/vendor/glfw/wrapper.odin index fa9329aa7..854dcdf9a 100644 --- a/vendor/glfw/wrapper.odin +++ b/vendor/glfw/wrapper.odin @@ -33,6 +33,10 @@ GetMonitorPos :: proc "c" (monitor: MonitorHandle) -> (xpos, ypos: c.int) { glfw.GetMonitorPos(monitor, &xpos, &ypos) return } +GetMonitorWorkarea :: proc "c" (monitor: MonitorHandle) -> (xpos, ypos, width, height: c.int) { + glfw.GetMonitorWorkarea(monitor, &xpos, &ypos, &width, &height) + return +} GetMonitorPhysicalSize :: proc "c" (monitor: MonitorHandle) -> (widthMM, heightMM: c.int) { glfw.GetMonitorPhysicalSize(monitor, &widthMM, &heightMM) return |