From 5e7a13daee9be7044411bda76ecb3b1e50c667a7 Mon Sep 17 00:00:00 2001 From: Amy Wilder <74995093+AmityWilder@users.noreply.github.com> Date: Tue, 4 Mar 2025 14:52:51 -0500 Subject: [PATCH] Add missing `get_render_height` and fix documentation on `get_screen_width` --- raylib/src/core/window.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/raylib/src/core/window.rs b/raylib/src/core/window.rs index 78f473ea..dc158fd7 100644 --- a/raylib/src/core/window.rs +++ b/raylib/src/core/window.rs @@ -705,7 +705,13 @@ impl RaylibHandle { unsafe { ffi::GetRenderWidth() } } - /// Get current screen height which is equal to screen height * dpi scale + /// Get current render height which is equal to screen height * dpi scale + #[inline] + pub fn get_render_height(&self) -> i32 { + unsafe { ffi::GetRenderHeight() } + } + + /// Gets current screen width. #[inline] pub fn get_screen_width(&self) -> i32 { unsafe { ffi::GetScreenWidth() }