From d9f5985a328a7446d01bfea4574de2b6a831a561 Mon Sep 17 00:00:00 2001 From: a-isaiahharvey <41553768+a-isaiahharvey@users.noreply.github.com> Date: Wed, 4 Oct 2023 06:51:04 -0400 Subject: [PATCH] Bump dependencies --- chip8_ui/Cargo.toml | 4 ++-- chip8_ui/src/gui.rs | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/chip8_ui/Cargo.toml b/chip8_ui/Cargo.toml index 181e7d1..62cfdef 100644 --- a/chip8_ui/Cargo.toml +++ b/chip8_ui/Cargo.toml @@ -16,8 +16,8 @@ log = "0.4.20" anyhow = "1.0.75" # UI -egui = "0.22.0" -eframe = { version = "0.22.0", default-features = false, features = [ +egui = "0.23.0" +eframe = { version = "0.23.0", default-features = false, features = [ "accesskit", # Make egui comptaible with screen readers. NOTE: adds a lot of dependencies. "default_fonts", # Embed the default egui fonts. "glow", # Use the glow rendering backend. Alternative: "wgpu". diff --git a/chip8_ui/src/gui.rs b/chip8_ui/src/gui.rs index 4b953ea..8947cbc 100644 --- a/chip8_ui/src/gui.rs +++ b/chip8_ui/src/gui.rs @@ -484,12 +484,12 @@ impl ScreenView { // Draw the list of rectangles let painter = ui.painter(); painter.extend(rects.iter().map(|(rect, color)| { - egui::Shape::Rect(RectShape { - rect: *rect, - rounding: Rounding::none(), - fill: *color, - stroke: Stroke::new(1.0, *color), - }) + egui::Shape::Rect(RectShape::new( + *rect, + Rounding::ZERO, + *color, + Stroke::new(1.0, *color), + )) })); }); },