X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/1409c1b3e8a10189f89c4f50609cd5d1c8221385..5a9eb1056517b6ee6efa526a3a6b5a21aa802648:/mac/mac.c diff --git a/mac/mac.c b/mac/mac.c index 21a2f010..a2c9b08f 100644 --- a/mac/mac.c +++ b/mac/mac.c @@ -1,4 +1,4 @@ -/* $Id: mac.c,v 1.20 2003/01/08 22:46:12 ben Exp $ */ +/* $Id: mac.c,v 1.21 2003/01/09 18:06:29 simon Exp $ */ /* * Copyright (c) 1999 Ben Harris * All rights reserved. @@ -694,6 +694,27 @@ void old_keyfile_warning(void) } +char *platform_default_s(char *name) +{ + if (!strcmp(name, "Font")) + return "Monaco"; + return NULL; +} + +int platform_default_i(char *name, int def) +{ + if (!strcmp(name, "FontHeight")) + return 9; + /* Non-raw cut and paste of line-drawing chars works badly on the + * current Unix stub implementation of the Unicode functions. + * So I'm going to temporarily set the default to raw mode so + * that the failure mode isn't quite so drastically horrid. + * When Unicode comes in, this can all be put right. */ + if (!strcmp(name, "RawCNP")) + return 1; + return def; +} + /* * Local Variables: * c-file-style: "simon"