bendn 8 weeks ago
parent 0d107b1 · commit f72ca96
-rw-r--r--Cargo.lock16
-rw-r--r--src/lib.rs13
2 files changed, 14 insertions, 15 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 7c45f47..f1c22d4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -122,8 +122,8 @@ checksum = "6a02dba6a60cd31533cf16561ced53239686d18f1464bff49579dd320fcea081"
[[package]]
name = "fimg"
-version = "0.4.50"
-source = "git+https://github.com/bend-n/fimg#4ef37597ee44dff03d6fc55393c4e97baa080196"
+version = "0.4.51"
+source = "git+https://github.com/bend-n/fimg#e72d81b7d072e6ad53dc4b9eeefcac04f5cbdd18"
dependencies = [
"array_chunks",
"atools 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -188,9 +188,9 @@ dependencies = [
[[package]]
name = "libc"
-version = "0.2.177"
+version = "0.2.178"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2874a2af47a2325c2001a6e6fad9b16a53b802102b528163885171cf92b15976"
+checksum = "37c93d8daa9d8a012fd8ab92f088405fb202ea0b6ab73ee2482ae66af4f42091"
[[package]]
name = "linked-hash-map"
@@ -258,9 +258,9 @@ dependencies = [
[[package]]
name = "proc-macro2"
-version = "1.0.103"
+version = "1.0.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5ee95bc4ef87b8d5ba32e8b7714ccc834865276eab0aed5c9958d00ec45f49e8"
+checksum = "9695f8df41bb4f3d222c95a67532365f569318332d03d5f3f67f37b20e6ebdf0"
dependencies = [
"unicode-ident",
]
@@ -296,9 +296,9 @@ dependencies = [
[[package]]
name = "simd-adler32"
-version = "0.3.7"
+version = "0.3.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe"
+checksum = "e320a6c5ad31d271ad523dcf3ad13e2767ad8b1cb8f047f75a8aeaf8da139da2"
[[package]]
name = "skrifa"
diff --git a/src/lib.rs b/src/lib.rs
index 988c910..6f67fb4 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -155,7 +155,7 @@ pub unsafe fn render(
fill_in(
i.as_mut(),
(
- (j as f32 * fw).floor() as u32 // _
+ (j as f32 * fw).ceil() as u32 // _
+ offset_x,
(k as f32 * (fh + line_spacing * fac)).ceil()
as u32
@@ -245,7 +245,6 @@ pub unsafe fn render(
characters[x.data as usize] = (x.id, x.x);
})
});
-
});
};
}
@@ -502,7 +501,7 @@ fn x() {
style: Style {
bg: [31, 36, 48],
color: [255, 255, 255],
- flags: Style::UNDERLINE,
+ flags: 0,
},
letter: Some('['),
},
@@ -510,7 +509,7 @@ fn x() {
style: Style {
bg: [31, 36, 48],
color: [255, 173, 102],
- flags: Style::UNDERLINE,
+ flags: 0,
},
letter: Some('='),
},
@@ -518,7 +517,7 @@ fn x() {
style: Style {
bg: [31, 36, 48],
color: [204, 202, 194],
- flags: Style::UNDERLINE,
+ flags: 0,
},
letter: Some('s'),
},
@@ -526,7 +525,7 @@ fn x() {
style: Style {
bg: [31, 36, 48],
color: [255, 173, 102],
- flags: Style::UNDERLINE,
+ flags: 0,
},
letter: Some('>'),
},
@@ -534,7 +533,7 @@ fn x() {
style: Style {
bg: [31, 36, 48],
color: [255, 255, 255],
- flags: 5,
+ flags: 0,
},
letter: Some(']'),
},