projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altoslib: Check for negative tick wrap when importing flight records
[fw/altos]
/
src
/
draw
/
font-convert
diff --git
a/src/draw/font-convert
b/src/draw/font-convert
index c29cf87cef6314cf6ae19fb1784bd5341e219a59..8feafe528127fd0f1fc6a529636873a42331830d 100755
(executable)
--- a/
src/draw/font-convert
+++ b/
src/draw/font-convert
@@
-138,7
+138,7
@@
void print_font(file out, font_t font, string font_name) {
if (pos[i] == -1)
pos[i] = pos[font.default_char];
if (pos[i] == -1)
pos[i] = pos[font.default_char];
- fprintf(out, "#include
\"ao_draw.h\"
\n");
+ fprintf(out, "#include
<ao_draw.h>
\n");
fprintf(out, "static const uint8_t %s_bytes[%d] = {", font_name, dim(bytes));
for (int b = 0; b < dim(bytes); b++) {
if ((b & 15) == 0)
fprintf(out, "static const uint8_t %s_bytes[%d] = {", font_name, dim(bytes));
for (int b = 0; b < dim(bytes); b++) {
if ((b & 15) == 0)
@@
-195,6
+195,8
@@
void print_font(file out, font_t font, string font_name) {
fprintf(out, "\t.max_height = %d,\n", max_height);
fprintf(out, "\t.ascent = %d,\n", font.ascent);
fprintf(out, "};\n");
fprintf(out, "\t.max_height = %d,\n", max_height);
fprintf(out, "\t.ascent = %d,\n", font.ascent);
fprintf(out, "};\n");
+ int max_stride = (max_width + 31) >> 5;
+ fprintf(out, "__asm__(\".balign 4\\n.comm ao_glyph_temp 0x%x\");\n", max_stride * max_height * 4);
}
string
}
string