chore: update dependencies
This commit is contained in:
parent
9ea26d4a05
commit
96cf705966
File diff suppressed because it is too large
Load Diff
|
@ -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
|
||||
|
|
|
@ -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)?)
|
||||
|
|
Loading…
Reference in New Issue