Update dependencies and fixes related to update

This commit is contained in:
Stephen Seo 2024-08-04 22:15:51 +09:00
parent 075754fcd0
commit ca21d5c640
3 changed files with 503 additions and 103 deletions

596
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -10,11 +10,11 @@ resolver = "2"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
clap = { version = "4.4", features = ["derive"] } clap = { version = "4.5", features = ["derive"] }
image = "0.24" image = "0.25"
ggez = "0.9.3" ggez = "0.9.3"
freetype = { version = "0.7", optional = true } freetype = { version = "0.7", optional = true }
wgpu = "0.16" wgpu-types = "0.16"
[build-dependencies] [build-dependencies]
bindgen = { version = "0.69", optional = true } bindgen = { version = "0.69", optional = true }

View file

@ -9,7 +9,7 @@ use ggez::graphics::{
use ggez::input::keyboard::{self, KeyInput}; use ggez::input::keyboard::{self, KeyInput};
use ggez::mint::Vector2; use ggez::mint::Vector2;
use ggez::{Context, GameError, GameResult}; use ggez::{Context, GameError, GameResult};
use image::io::Reader as ImageReader; use image::ImageReader;
use image::DynamicImage; use image::DynamicImage;
use std::io::Cursor; use std::io::Cursor;
use std::path::PathBuf; use std::path::PathBuf;
@ -457,7 +457,7 @@ impl MPDDisplay {
let ggez_img = Image::from_pixels( let ggez_img = Image::from_pixels(
ctx, ctx,
rgba8.as_raw(), rgba8.as_raw(),
wgpu::TextureFormat::Rgba8UnormSrgb, wgpu_types::TextureFormat::Rgba8UnormSrgb,
rgba8.width(), rgba8.width(),
rgba8.height(), rgba8.height(),
); );