Skip to content

Add missing get_render_height function #217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
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