Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion raylib/src/core/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() }
Expand Down