X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/bf02e82ebf5cdbe3eee6b64f6a12b2a55d26fc58..9a30e26b7801d63e4ccfe8d36169299c09b89dff:/windefs.c diff --git a/windefs.c b/windefs.c index 80e186d1..6c65c205 100644 --- a/windefs.c +++ b/windefs.c @@ -10,16 +10,36 @@ #include "putty.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; +} + +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(const char *name) { - if (!strcmp(name, "Font")) - return "Courier New"; return NULL; } int platform_default_i(const char *name, int def) { - if (!strcmp(name, "FontCharSet")) - return ANSI_CHARSET; return def; }