~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't forget to initialise the pixel size parameters of the window
[sgt/putty]
/
unix
/
pterm.c
diff --git
a/unix/pterm.c
b/unix/pterm.c
index
d4b8f4d
..
b5625ea
100644
(file)
--- a/
unix/pterm.c
+++ b/
unix/pterm.c
@@
-79,6
+79,14
@@
void logevent(char *string)
*/
}
*/
}
+int font_dimension(int which) /* 0 for width, 1 for height */
+{
+ if (which)
+ return inst->font_height;
+ else
+ return inst->font_width;
+}
+
/*
* Translate a raw mouse button designation (LEFT, MIDDLE, RIGHT)
* into a cooked one (SELECT, EXTEND, PASTE).
/*
* Translate a raw mouse button designation (LEFT, MIDDLE, RIGHT)
* into a cooked one (SELECT, EXTEND, PASTE).