cfg.host[sizeof(cfg.host) - 1] = '\0';
got_host = 1;
}
+ } else {
+ cmdline_error("unknown option \"%s\"", p);
}
}
}
hwnd = NULL;
- term = term_init(NULL);
+ term = term_init(&cfg, NULL);
logctx = log_init(NULL);
term_provide_logctx(term, logctx);
/* This function gets the actual width of a character in the normal font.
*/
-int CharWidth(Context ctx, int uc) {
+int char_width(Context ctx, int uc) {
HDC hdc = ctx;
int ibuf = 0;