Skip to content

Commit c5e0c58

Browse files
authored
Merge pull request #1128 from jaytaph/image-backgrounds
Image backgrounds
2 parents 745a220 + 342f95a commit c5e0c58

19 files changed

Lines changed: 1401 additions & 126 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ panic = "deny"
4848

4949
[workspace.dependencies]
5050
anyhow = "1.0.102"
51+
base64 = "0.22.1"
5152
bytemuck = "1.25.0"
5253
bytes = "1.10.1"
5354
cairo-rs = "0.22.0"
@@ -78,6 +79,7 @@ nom = "8.0.0"
7879
once_cell = "1.21.3"
7980
pangocairo = "0.22.0"
8081
parking_lot = "0.12.4"
82+
png = "0.18.1"
8183
parley = {version = "0.11.0", default-features = false}
8284
pollster = "1.0.1"
8385
rand = "0.10.1"

crates/gosub_css3/src/matcher/property_definitions.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,8 @@ const BUILTIN_DATA_TYPES: [&str; 41] = [
7474
/// not constrain arbitrary arguments of a function inside the resolved grammar.
7575
fn apply_range(component: &mut SyntaxComponent, range: RangeType) {
7676
match component {
77-
SyntaxComponent::Builtin { range: existing, .. } => {
78-
if existing.is_empty() {
79-
*existing = range;
80-
}
77+
SyntaxComponent::Builtin { range: existing, .. } if existing.is_empty() => {
78+
*existing = range;
8179
}
8280
SyntaxComponent::Group { components, .. } => {
8381
for inner in components {

crates/gosub_render_pipeline/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ autobins = false
99
taffy = { workspace = true, features = ["std", "taffy_tree", "flexbox", "grid", "block_layout", "content_size", "calc"] }
1010
log = { workspace = true }
1111
image = { workspace = true, features = ["png", "jpeg", "gif"] }
12+
png = { workspace = true }
1213
rand = { workspace = true }
1314
sha2 = "0.11.0"
1415
serde = { workspace = true, features = ["derive"] }
@@ -21,6 +22,7 @@ url = { workspace = true }
2122
resvg = { workspace = true }
2223
bytes = { workspace = true }
2324
bytemuck = { workspace = true }
25+
base64 = { workspace = true }
2426
anyhow = { workspace = true }
2527
cow-utils = { workspace = true }
2628
parking_lot = { workspace = true }

0 commit comments

Comments
 (0)