X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/7bd029472d96162f71f61df67baedc00fc0bb1a8..e35fb54b2ce23c668414c0f5cd072c709374fc6d:/winctrls.c diff --git a/winctrls.c b/winctrls.c index 85b6dfb5..0fb4b9fc 100644 --- a/winctrls.c +++ b/winctrls.c @@ -13,17 +13,14 @@ * button. */ -#include -#include #include #include -#include "winstuff.h" +#include "putty.h" #include "misc.h" #include "dialog.h" -#include "puttymem.h" -#include "putty.h" +#include #define GAPBETWEEN 3 #define GAPWITHIN 1 @@ -2285,8 +2282,9 @@ void dlg_fontsel_set(union control *ctrl, void *dlg, FontSpec fs) if (fs.height == 0) buf = dupprintf("Font: %s, %sdefault height", fs.name, boldstr); else - buf = dupprintf("Font: %s, %s%d-point", fs.name, boldstr, - (fs.height < 0 ? -fs.height : fs.height)); + buf = dupprintf("Font: %s, %s%d-%s", fs.name, boldstr, + (fs.height < 0 ? -fs.height : fs.height), + (fs.height < 0 ? "pixel" : "point")); SetDlgItemText(dp->hwnd, c->base_id+1, buf); sfree(buf); }