浏览代码

Update glutin (to 0.15), image (to 0.19) & others

Johannes Hofmann 7 年前
父节点
当前提交
56ad75b327
共有 3 个文件被更改,包括 338 次插入284 次删除
  1. 335
    281
      Cargo.lock
  2. 2
    2
      Cargo.toml
  3. 1
    1
      src/main.rs

+ 335
- 281
Cargo.lock
文件差异内容过多而无法显示
查看文件


+ 2
- 2
Cargo.toml 查看文件

14
 clap = "2.29"
14
 clap = "2.29"
15
 env_logger = "0.5.0-rc.2"
15
 env_logger = "0.5.0-rc.2"
16
 gl = "0.10"
16
 gl = "0.10"
17
-image = "0.18"
17
+image = "0.19"
18
 linked-hash-map = "0.5.0"
18
 linked-hash-map = "0.5.0"
19
 log = "0.4"
19
 log = "0.4"
20
 osmpbf = "0.1"
20
 osmpbf = "0.1"
21
 reqwest = "0.8"
21
 reqwest = "0.8"
22
-glutin = "0.14"
22
+glutin = "0.15"
23
 toml = "0.4"
23
 toml = "0.4"
24
 xdg = "2.1"
24
 xdg = "2.1"
25
 
25
 

+ 1
- 1
src/main.rs 查看文件

50
     match *event {
50
     match *event {
51
         Event::Awakened => Action::Redraw,
51
         Event::Awakened => Action::Redraw,
52
         Event::WindowEvent{ref event, ..} => match *event {
52
         Event::WindowEvent{ref event, ..} => match *event {
53
-            WindowEvent::Closed => Action::Close,
53
+            WindowEvent::CloseRequested => Action::Close,
54
             WindowEvent::MouseInput { state: ElementState::Pressed, button: MouseButton::Left, .. } => {
54
             WindowEvent::MouseInput { state: ElementState::Pressed, button: MouseButton::Left, .. } => {
55
                 input_state.mouse_pressed = true;
55
                 input_state.mouse_pressed = true;
56
                 Action::Nothing
56
                 Action::Nothing