diff options
author | Glenn Watson <gw@intuitionlibrary.com> | 2014-12-17 09:41:27 +1000 |
---|---|---|
committer | Glenn Watson <gw@intuitionlibrary.com> | 2014-12-19 05:44:47 +1000 |
commit | fa5cb66cff2e13a5ee75c4f99abe5f93bede7dd1 (patch) | |
tree | d43f94a82c811600935ec4fe5848499f63c80357 /src/x11 | |
parent | 0ad9c3d453076adc5d94008d7e155d7ee5536225 (diff) | |
download | glutin-fa5cb66cff2e13a5ee75c4f99abe5f93bede7dd1.tar.gz glutin-fa5cb66cff2e13a5ee75c4f99abe5f93bede7dd1.zip |
Add resize example, fix warnings, make callback an option so it can be removed.
Diffstat (limited to 'src/x11')
-rw-r--r-- | src/x11/headless.rs | 2 | ||||
-rw-r--r-- | src/x11/window/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/x11/headless.rs b/src/x11/headless.rs index 3bcea29..95f5233 100644 --- a/src/x11/headless.rs +++ b/src/x11/headless.rs @@ -53,7 +53,7 @@ impl HeadlessContext { ::Api::OpenGl } - pub fn set_window_resize_callback(&mut self, _: fn(uint, uint)) { + pub fn set_window_resize_callback(&mut self, _: Option<fn(uint, uint)>) { } } diff --git a/src/x11/window/mod.rs b/src/x11/window/mod.rs index 0a3ba01..422b5b6 100644 --- a/src/x11/window/mod.rs +++ b/src/x11/window/mod.rs @@ -599,6 +599,6 @@ impl Window { ::Api::OpenGl } - pub fn set_window_resize_callback(&mut self, _: fn(uint, uint)) { + pub fn set_window_resize_callback(&mut self, _: Option<fn(uint, uint)>) { } } |