summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2006-10-12 04:56:58 +0000
committerRich Felker <dalias@aerifal.cx>2006-10-12 04:56:58 +0000
commitc50a3902f6a5557c0173f6c588540d3207914aec (patch)
tree673bdef9cfbf1182e0a8fe48664f0233b05f261d /main.c
parent48820ddb03b5a9678b43d7c1a7d1596899bf3404 (diff)
make size of built-in font known, may be needed
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 56a6b8d..e14c277 100644
--- a/main.c
+++ b/main.c
@@ -13,6 +13,7 @@
int ucf_load(struct ucf *, const char *);
extern const unsigned char vga_ascii_ucf[];
+extern const size_t vga_ascii_ucf_size;
int main(int argc, char *argv[])
{
@@ -29,7 +30,7 @@ int main(int argc, char *argv[])
setlocale(LC_CTYPE, "");
if (ucf_load(&f, getenv("UUTERM_FONT")) < 0
- && ucf_init(&f, vga_ascii_ucf, -1) < 0)
+ && ucf_init(&f, vga_ascii_ucf, vga_ascii_ucf_size) < 0)
return 1;
d.cell_w = 8;