Introduction
Introduction Statistics Contact Development Disclaimer Help
drawille: text glyph are between 0 and 127, not 127 and 127 - ploot - simple pl…
git clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65…
Log
Files
Refs
Tags
README
LICENSE
---
commit 5346717da9c74ac50b04e12bdb980df8dcaa81c4
parent 0ee58964da01ae963b4f8d0a906cba93c3095b8b
Author: Josuah Demangeon <[email protected]>
Date: Sun, 27 Jun 2021 01:10:16 +0200
drawille: text glyph are between 0 and 127, not 127 and 127
Diffstat:
M drawille.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/drawille.c b/drawille.c
@@ -165,7 +165,7 @@ drawille_text_glyph(struct drawille *drw, int x, int y, str…
int w;
char *glyph;
- glyph = font->glyph[(c > 127 || c < 127) ? 0 : c];
+ glyph = font->glyph[(c > 127 || c < 0) ? 0 : c];
w = strlen(glyph) / font->height;
for (int ix = 0; ix < w; ix++)
for (int iy = 0; iy < font->height; iy++)
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.