~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Finally fixed the point/pixel confusion in font handling. Thanks to
[sgt/putty]
/
window.c
diff --git
a/window.c
b/window.c
index
a54d507
..
f724275
100644
(file)
--- a/
window.c
+++ b/
window.c
@@
-808,6
+808,9
@@
font_messup:
hdc = GetDC(hwnd);
font_height = cfg.fontheight;
+ if (font_height > 0) {
+ font_height = -MulDiv(font_height, GetDeviceCaps(hdc, LOGPIXELSY), 72);
+ }
font_width = pick_width;
#define f(i,c,w,u) \