Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace usage of glutin with winit where it is possible #2772

Merged
merged 2 commits into from May 27, 2018
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Next

Update glutin and winit

  • Loading branch information
zakorgy committed May 25, 2018
commit a0941d5e58feeb697c67169509a1fd1e8c550b10

Some generated files are not rendered by default. Learn more.

@@ -10,4 +10,4 @@ gleam = "0.5"
mozangle = {version = "0.1", features = ["egl"]}
webrender = {path = "../webrender"}
winapi = {version = "0.3", features = ["winerror", "d3d11", "dcomp"]}
winit = "0.11"
winit = "0.13"
@@ -64,7 +64,7 @@ optional = true
mozangle = "0.1"
env_logger = "0.5"
rand = "0.3" # for the benchmarks
glutin = "0.13" # for the example apps
glutin = "0.15" # for the example apps

[target.'cfg(any(target_os = "android", all(unix, not(target_os = "macos"))))'.dependencies]
freetype = { version = "0.4", default-features = false }
@@ -196,7 +196,7 @@ pub fn main_wrapper<E: Example>(
let mut custom_event = true;

match global_event {
glutin::Event::WindowEvent { event: glutin::WindowEvent::Closed, .. } => return glutin::ControlFlow::Break,
glutin::Event::WindowEvent { event: glutin::WindowEvent::CloseRequested, .. } => return glutin::ControlFlow::Break,
glutin::Event::WindowEvent {
event: glutin::WindowEvent::KeyboardInput {
input: glutin::KeyboardInput {
@@ -136,7 +136,7 @@ impl Window {

self.events_loop.poll_events(|global_event| match global_event {
glutin::Event::WindowEvent { event, .. } => match event {
glutin::WindowEvent::Closed |
glutin::WindowEvent::CloseRequested |
glutin::WindowEvent::KeyboardInput {
input: glutin::KeyboardInput {
virtual_keycode: Some(glutin::VirtualKeyCode::Escape),
@@ -12,7 +12,7 @@ byteorder = "1.0"
env_logger = { version = "0.5", optional = true }
euclid = "0.17"
gleam = "0.5"
glutin = "0.13"
glutin = "0.15"
app_units = "0.6"
image = "0.18"
clap = { version = "2", features = ["yaml"] }
@@ -525,7 +525,7 @@ fn main() {
do_render = true;
}
glutin::Event::WindowEvent { event, .. } => match event {
glutin::WindowEvent::Closed => {
glutin::WindowEvent::CloseRequested => {
return glutin::ControlFlow::Break;
}
glutin::WindowEvent::Refresh |
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.