Skip to content

Commit e020c4c

Browse files
committed
Update sdl
1 parent 54dd65b commit e020c4c

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

interactive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ caw_core = { version = "0.5", path = "../core" }
1616
caw_computer_keyboard = { version = "0.4", path = "../computer-keyboard" }
1717
line_2d = "0.5"
1818
rgb_int = "0.1"
19-
sdl2 = "0.37"
19+
sdl2 = "0.38"
2020

2121
[dev-dependencies]
2222
caw_keyboard = { path = "../keyboard" }

viz-udp-app/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ documentation = "https://docs.rs/caw_viz_udp_app"
1111

1212
[dependencies]
1313
anyhow = "1.0"
14-
sdl2 = { version = "0.37" }
14+
sdl2 = { version = "0.38" }
1515
line_2d = "0.5"
1616
clap = { version = "4", features = ["derive"] }
1717
caw_viz_udp_app_lib = { version = "0.1", path = "../viz-udp-app-lib" }

widgets/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ documentation = "https://docs.rs/caw_widgets"
1111

1212
[dependencies]
1313
anyhow = "1.0"
14-
sdl2 = { version = "0.37", features = ["ttf"] }
14+
sdl2 = { version = "0.38", features = ["ttf"] }
1515
line_2d = "0.5"
1616
lazy_static = "1.5"
1717
midly = "0.5"

widgets/src/window.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use sdl2::{
66
rect::Rect,
77
render::{Canvas, TextureCreator},
88
rwops::RWops,
9-
ttf::{Font, InitError, Sdl2TtfContext},
9+
ttf::{Font, Sdl2TtfContext},
1010
video::{Window as SdlWindow, WindowContext},
1111
};
1212
use std::{
@@ -17,8 +17,7 @@ use std::{
1717
const FRAME_DURATION: Duration = Duration::from_micros(1_000_000 / 60);
1818

1919
lazy_static! {
20-
static ref TTF_CONTEXT: Result<Sdl2TtfContext, InitError> =
21-
sdl2::ttf::init();
20+
static ref TTF_CONTEXT: Result<Sdl2TtfContext, String> = sdl2::ttf::init();
2221
}
2322

2423
fn load_font() -> anyhow::Result<Font<'static, 'static>> {

0 commit comments

Comments
 (0)