aboutsummaryrefslogtreecommitdiff
path: root/src/window.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.rs')
-rw-r--r--src/window.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.rs b/src/window.rs
index b821c77b..00f60c38 100644
--- a/src/window.rs
+++ b/src/window.rs
@@ -360,11 +360,11 @@ impl Proxy {
}
pub trait SetInnerSize<T> {
- fn set_inner_size<S: ToPoints>(&mut self, size: S);
+ fn set_inner_size<S: ToPoints>(&mut self, size: &S);
}
impl SetInnerSize<Pixels<u32>> for Window {
- fn set_inner_size<T: ToPoints>(&mut self, size: T) {
+ fn set_inner_size<T: ToPoints>(&mut self, size: &T) {
let size = size.to_points(self.hidpi_factor());
self.glutin_window.set_inner_size(*size.width as _, *size.height as _);
}