aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-11-09 08:28:35 +0100
committertomaka <pierre.krieger1708@gmail.com>2015-11-09 08:28:35 +0100
commit439d25168e0145bb563c2675ce490c521448f4ba (patch)
tree466c4fd12bba70b78b86d458583cf1349f64e550 /examples
parent0386d093d1acca9c6010e6360bef781726efde5c (diff)
parent947effd3a0c250f2aee72bbfdbfa26b13ae09067 (diff)
downloadglutin-439d25168e0145bb563c2675ce490c521448f4ba.tar.gz
glutin-439d25168e0145bb563c2675ce490c521448f4ba.zip
Merge pull request #655 from mitchmindtree/master
Lock objc to 0.1.7. Fix remaining libc pointer errors with casts. Fix warnings in cursor example.
Diffstat (limited to 'examples')
-rw-r--r--examples/cursor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/cursor.rs b/examples/cursor.rs
index cbe6978..167c5cb 100644
--- a/examples/cursor.rs
+++ b/examples/cursor.rs
@@ -14,7 +14,7 @@ android_start!(main);
fn main() {
let window = glutin::WindowBuilder::new().build().unwrap();
window.set_title("A fantastic window!");
- unsafe { window.make_current() };
+ unsafe { window.make_current().unwrap() };
let context = support::load(&window);
let cursors = [MouseCursor::Default, MouseCursor::Crosshair, MouseCursor::Hand, MouseCursor::Arrow, MouseCursor::Move, MouseCursor::Text, MouseCursor::Wait, MouseCursor::Help, MouseCursor::Progress, MouseCursor::NotAllowed, MouseCursor::ContextMenu, MouseCursor::NoneCursor, MouseCursor::Cell, MouseCursor::VerticalText, MouseCursor::Alias, MouseCursor::Copy, MouseCursor::NoDrop, MouseCursor::Grab, MouseCursor::Grabbing, MouseCursor::AllScroll, MouseCursor::ZoomIn, MouseCursor::ZoomOut, MouseCursor::EResize, MouseCursor::NResize, MouseCursor::NeResize, MouseCursor::NwResize, MouseCursor::SResize, MouseCursor::SeResize, MouseCursor::SwResize, MouseCursor::WResize, MouseCursor::EwResize, MouseCursor::NsResize, MouseCursor::NeswResize, MouseCursor::NwseResize, MouseCursor::ColResize, MouseCursor::RowResize];
@@ -36,6 +36,6 @@ fn main() {
}
context.draw_frame((0.0, 1.0, 0.0, 1.0));
- window.swap_buffers();
+ window.swap_buffers().unwrap();
}
}