aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.rs
diff options
context:
space:
mode:
authorSven Nilsen <bvssvni@gmail.com>2015-07-25 12:01:20 +0200
committerSven Nilsen <bvssvni@gmail.com>2015-07-25 12:01:20 +0200
commit5f98e510e4379e1700dcf79fea288caf7ba005ac (patch)
treefc1ee92366f559fee8c40c40fb29cfd614c25ddd /src/window.rs
parent8953eeb0508f557d3ca730b0033ceada1792522e (diff)
downloadglutin-5f98e510e4379e1700dcf79fea288caf7ba005ac.tar.gz
glutin-5f98e510e4379e1700dcf79fea288caf7ba005ac.zip
Fixed docs for `get_inner_size`
Closes https://github.com/tomaka/glutin/issues/388
Diffstat (limited to 'src/window.rs')
-rw-r--r--src/window.rs5
1 files changed, 2 insertions, 3 deletions
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]