aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-07-25 13:03:40 +0200
committertomaka <pierre.krieger1708@gmail.com>2015-07-25 13:03:40 +0200
commit50c263770367d322992b615930508b0996f83ef4 (patch)
treefc1ee92366f559fee8c40c40fb29cfd614c25ddd /src/window.rs
parent8953eeb0508f557d3ca730b0033ceada1792522e (diff)
parent5f98e510e4379e1700dcf79fea288caf7ba005ac (diff)
downloadglutin-50c263770367d322992b615930508b0996f83ef4.tar.gz
glutin-50c263770367d322992b615930508b0996f83ef4.zip
Merge pull request #541 from bvssvni/fix-docs
Fixed docs for `get_inner_size`
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]