idrawille: text glyph are between 0 and 127, not 127 and 127 - ploot - simple plotting tools Err bitreich.org 70 hgit clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ploot URL:git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ploot bitreich.org 70 1Log /scm/ploot/log.gph bitreich.org 70 1Files /scm/ploot/files.gph bitreich.org 70 1Refs /scm/ploot/refs.gph bitreich.org 70 1Tags /scm/ploot/tag bitreich.org 70 1README /scm/ploot/file/README.md.gph bitreich.org 70 1LICENSE /scm/ploot/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit 5346717da9c74ac50b04e12bdb980df8dcaa81c4 /scm/ploot/commit/5346717da9c74ac50b04e12bdb980df8dcaa81c4.gph bitreich.org 70 1parent 0ee58964da01ae963b4f8d0a906cba93c3095b8b /scm/ploot/commit/0ee58964da01ae963b4f8d0a906cba93c3095b8b.gph bitreich.org 70 hAuthor: Josuah Demangeon URL:mailto:me@josuah.net bitreich.org 70 iDate: Sun, 27 Jun 2021 01:10:16 +0200 Err bitreich.org 70 i Err bitreich.org 70 idrawille: text glyph are between 0 and 127, not 127 and 127 Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M drawille.c | 2 +- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 1 insertion(+), 1 deletion(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/drawille.c b/drawille.c /scm/ploot/file/drawille.c.gph bitreich.org 70 i@@ -165,7 +165,7 @@ drawille_text_glyph(struct drawille *drw, int x, int y, struct font *font, int c Err bitreich.org 70 i int w; Err bitreich.org 70 i char *glyph; Err bitreich.org 70 i Err bitreich.org 70 i- glyph = font->glyph[(c > 127 || c < 127) ? 0 : c]; Err bitreich.org 70 i+ glyph = font->glyph[(c > 127 || c < 0) ? 0 : c]; Err bitreich.org 70 i w = strlen(glyph) / font->height; Err bitreich.org 70 i for (int ix = 0; ix < w; ix++) Err bitreich.org 70 i for (int iy = 0; iy < font->height; iy++) Err bitreich.org 70 .