update servicepoint library to fix parsing error for clear
This commit is contained in:
parent
86c9c20b49
commit
e43875e66d
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -1521,9 +1521,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "servicepoint"
|
||||
version = "0.15.1"
|
||||
version = "0.15.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2800caad491cb44f67e5dd5b8c61ece368eecfe588155d03c7d9864acbad6919"
|
||||
checksum = "7d1e88713031e003dc3ee708dbb282e36714eee466a12d311d0e2e24c61c7118"
|
||||
dependencies = [
|
||||
"bitvec",
|
||||
"bzip2",
|
||||
|
|
|
@ -7,7 +7,7 @@ license = "GPL-3.0-or-later"
|
|||
keywords = ["cccb", "cccb-servicepoint", "cli"]
|
||||
description = "A simulator for the Service Point display."
|
||||
homepage = "https://git.berlin.ccc.de/servicepoint/servicepoint-simulator"
|
||||
repository = "https://git.berlin.ccc.de/servicepoint/servicepoint-simulator"
|
||||
repository = "https://git.berlin.ccc.de/servicepoint/servicepoint-simulator.git"
|
||||
readme = "README.md"
|
||||
rust-version = "1.80.0"
|
||||
resolver = "2"
|
||||
|
@ -20,7 +20,7 @@ clap = { version = "4.5", features = ["derive"] }
|
|||
thiserror = "2.0"
|
||||
|
||||
# package parsing
|
||||
servicepoint = { features = ["all_compressions"], version = "0.15.1" }
|
||||
servicepoint = { features = ["all_compressions"], version = "0.15.2" }
|
||||
|
||||
# font rendering
|
||||
font-kit = "0.14.2"
|
||||
|
|
|
@ -102,8 +102,8 @@ impl FontRenderer8x8 {
|
|||
for y in 0..TILE_SIZE {
|
||||
for x in 0..TILE_SIZE {
|
||||
let canvas_val = canvas.pixels[x + y * TILE_SIZE] != 0;
|
||||
let bitmap_x = (offset.x + x) as isize;
|
||||
let bitmap_y = (offset.y + y) as isize;
|
||||
let bitmap_x = offset.x + x;
|
||||
let bitmap_y = offset.y + y;
|
||||
if !bitmap.set_optional(bitmap_x, bitmap_y, canvas_val) {
|
||||
return Err(OutOfBounds(x, y));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue