Bladeren bron

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

Johannes Hofmann 7 jaren geleden
bovenliggende
commit
56ad75b327
3 gewijzigde bestanden met toevoegingen van 338 en 284 verwijderingen
  1. 335
    281
      Cargo.lock
  2. 2
    2
      Cargo.toml
  3. 1
    1
      src/main.rs

+ 335
- 281
Cargo.lock
Diff onderdrukt omdat het te groot bestand
Bestand weergeven


+ 2
- 2
Cargo.toml Bestand weergeven

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

+ 1
- 1
src/main.rs Bestand weergeven

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