From dd8dde984a16c7eb7d3c13ff86d57852ce06c849 Mon Sep 17 00:00:00 2001 From: anshul Date: Fri, 14 Jun 2024 19:58:46 +0530 Subject: [PATCH] add missing get_render_height function --- raylib/src/core/window.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/raylib/src/core/window.rs b/raylib/src/core/window.rs index 78f473ea..630e8673 100644 --- a/raylib/src/core/window.rs +++ b/raylib/src/core/window.rs @@ -705,6 +705,12 @@ impl RaylibHandle { unsafe { ffi::GetRenderWidth() } } + /// Get current render height which is equal to screen height * dpi scale + #[inline] + pub fn get_render_height(&self) -> i32 { + unsafe { ffi::GetRenderHeight() } + } + /// Get current screen height which is equal to screen height * dpi scale #[inline] pub fn get_screen_width(&self) -> i32 {