We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac86abd commit 10b6d0fCopy full SHA for 10b6d0f
1 file changed
src/draw.cpp
@@ -1101,6 +1101,9 @@ int cls_draw::textn(u_char *image
1101
for (pos = 0; pos < len; pos++) {
1102
int pos_check = (int)text[pos];
1103
1104
+ if ((pos_check <0) || (pos_check >126)) {
1105
+ pos_check = 45; /* Use a - for non ascii characters*/
1106
+ }
1107
char_ptr = char_arr_ptr[pos_check];
1108
1109
for (y = 0; y < 8 * factor; y++) {
0 commit comments