X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=winctrls.c;h=0fb4b9fcc012410ad89fe729fbaa25e26b5e79b0;hb=52a552096627b5dc28117d009f13744233e897dd;hp=4a35cb6b3150f39ea2b89309dc346368c7bbfefa;hpb=e30aed9a6f8f3a20fc7bafd4ce5279a5bfba62a6;p=PuTTY.git diff --git a/winctrls.c b/winctrls.c index 4a35cb6b..0fb4b9fc 100644 --- a/winctrls.c +++ b/winctrls.c @@ -2282,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); }