mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 22:31:30 +11:00
Fixed docs for get_inner_size
Closes https://github.com/tomaka/glutin/issues/388
This commit is contained in:
parent
8953eeb050
commit
5f98e510e4
|
@ -294,11 +294,10 @@ impl Window {
|
|||
self.window.set_position(x, y)
|
||||
}
|
||||
|
||||
/// Returns the size in pixels of the client area of the window.
|
||||
/// Returns the size in points of the client area of the window.
|
||||
///
|
||||
/// The client area is the content of the window, excluding the title bar and borders.
|
||||
/// These are the dimensions of the frame buffer, and the dimensions that you should use
|
||||
/// when you call `glViewport`.
|
||||
/// To get the dimensions of the frame buffer when calling `glViewport`, multiply with hidpi factor.
|
||||
///
|
||||
/// Returns `None` if the window no longer exists.
|
||||
#[inline]
|
||||
|
|
Loading…
Reference in a new issue