projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
On a keypress, hide the mouse cursor, send the key to the line discipline
[u/mdw/putty]
/
window.c
diff --git
a/window.c
b/window.c
index
78cb1e0
..
11e199d
100644
(file)
--- a/
window.c
+++ b/
window.c
@@
-406,6
+406,8
@@
int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
cfg.host[sizeof(cfg.host) - 1] = '\0';
got_host = 1;
}
cfg.host[sizeof(cfg.host) - 1] = '\0';
got_host = 1;
}
+ } else {
+ cmdline_error("unknown option \"%s\"", p);
}
}
}
}
}
}
@@
-2997,7
+2999,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.
*/
/* This function gets the actual width of a character in the normal font.
*/
-int
CharW
idth(Context ctx, int uc) {
+int
char_w
idth(Context ctx, int uc) {
HDC hdc = ctx;
int ibuf = 0;
HDC hdc = ctx;
int ibuf = 0;