X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/0b4f0bc0bdc90f7c0d63c94d18059612679f3fc4..b7a189f38294c745ae4ea6efb55891c8196e275b:/window.c diff --git a/window.c b/window.c index 78cb1e09..1ca1f050 100644 --- a/window.c +++ b/window.c @@ -87,7 +87,6 @@ static void init_fonts(int, int); static void another_font(int); static void deinit_fonts(void); static void set_input_locale(HKL); -static int do_mouse_wheel_msg(UINT message, WPARAM wParam, LPARAM lParam); static int is_full_screen(void); static void make_full_screen(void); @@ -406,6 +405,8 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) cfg.host[sizeof(cfg.host) - 1] = '\0'; got_host = 1; } + } else { + cmdline_error("unknown option \"%s\"", p); } } } @@ -504,7 +505,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) hwnd = NULL; - term = term_init(NULL); + term = term_init(&cfg, NULL); logctx = log_init(NULL); term_provide_logctx(term, logctx); @@ -642,7 +643,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) /* * Set up a line discipline. */ - ldisc = ldisc_create(term, back, backhandle, NULL); + ldisc = ldisc_create(&cfg, term, back, backhandle, NULL); session_closed = FALSE; @@ -2997,7 +2998,7 @@ void do_cursor(Context ctx, int x, int y, char *text, int len, /* 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;