projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/draw: Have each font declare ao_glyph_temp as .comm
[fw/altos]
/
src
/
draw
/
font-convert
diff --git
a/src/draw/font-convert
b/src/draw/font-convert
index 891331291b6c179235f8748d2d5d9c396deaa57f..8feafe528127fd0f1fc6a529636873a42331830d 100755
(executable)
--- a/
src/draw/font-convert
+++ b/
src/draw/font-convert
@@
-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