chore: update dependencies

This commit is contained in:
Rekai Nyangadzayi Musuka 2021-05-31 23:24:20 -05:00
parent 9ea26d4a05
commit 96cf705966
3 changed files with 368 additions and 355 deletions

713
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -11,9 +11,9 @@ anyhow = "^1.0"
bitfield = "^0.13"
clap = "^2.33"
gilrs = "^0.8"
pixels = "^0.2"
winit = "^0.24"
winit_input_helper = "^0.9"
pixels = "^0.3"
winit = "^0.25"
winit_input_helper = "^0.10"
[profile.release]
debug = true

View File

@ -93,7 +93,7 @@ fn main() -> Result<()> {
}
if let Some(size) = input.window_resized() {
pixels.resize(size.width, size.height);
pixels.resize_surface(size.width, size.height);
}
if active_gamepad.is_none() {
@ -139,7 +139,7 @@ fn create_window(event_loop: &EventLoop<()>, title: &str) -> Result<Window> {
.build(&event_loop)?)
}
fn create_pixels(window: &Window) -> Result<Pixels<Window>> {
fn create_pixels(window: &Window) -> Result<Pixels> {
let window_size = window.inner_size();
let surface_texture = SurfaceTexture::new(window_size.width, window_size.height, window);
Ok(Pixels::new(GB_WIDTH, GB_HEIGHT, surface_texture)?)