From 5f98e510e4379e1700dcf79fea288caf7ba005ac Mon Sep 17 00:00:00 2001 From: Sven Nilsen Date: Sat, 25 Jul 2015 12:01:20 +0200 Subject: Fixed docs for `get_inner_size` Closes https://github.com/tomaka/glutin/issues/388 --- src/window.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/window.rs') diff --git a/src/window.rs b/src/window.rs index 8757efc..ac52ed7 100644 --- a/src/window.rs +++ b/src/window.rs @@ -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] -- cgit v1.2.3