X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fdraw%2Ffont-convert;h=8feafe528127fd0f1fc6a529636873a42331830d;hb=b2d2a9de490a140e8f2c5c2fba739662b340fb3b;hp=891331291b6c179235f8748d2d5d9c396deaa57f;hpb=6394680d1e9ff8596068a73eb43e4adc45722455;p=fw%2Faltos diff --git a/src/draw/font-convert b/src/draw/font-convert index 89133129..8feafe52 100755 --- 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"); + 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