X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/5a9eb1056517b6ee6efa526a3a6b5a21aa802648..7440fd4419acfc9c784f142fb9dee3e64c9a18c2:/windefs.c diff --git a/windefs.c b/windefs.c index 88e9fe61..2acc5e36 100644 --- a/windefs.c +++ b/windefs.c @@ -2,24 +2,40 @@ * windefs.c: default settings that are specific to Windows. */ -#include +#include "putty.h" + #include -#include "winstuff.h" -#include "puttymem.h" +FontSpec platform_default_fontspec(const char *name) +{ + FontSpec ret; + if (!strcmp(name, "Font")) { + strcpy(ret.name, "Courier New"); + ret.isbold = 0; + ret.charset = ANSI_CHARSET; + ret.height = 10; + } else { + ret.name[0] = '\0'; + } + return ret; +} -#include "putty.h" +Filename platform_default_filename(const char *name) +{ + Filename ret; + if (!strcmp(name, "LogFileName")) + strcpy(ret.path, "putty.log"); + else + *ret.path = '\0'; + return ret; +} -char *platform_default_s(char *name) +char *platform_default_s(const char *name) { - if (!strcmp(name, "Font")) - return "Courier New"; return NULL; } -int platform_default_i(char *name, int def) +int platform_default_i(const char *name, int def) { - if (!strcmp(name, "FontCharSet")) - return ANSI_CHARSET; return def; }