Change the semantics of 'FontSpec' so that it's a dynamically
[u/mdw/putty] / windows / windefs.c
CommitLineData
5a9eb105 1/*
2 * windefs.c: default settings that are specific to Windows.
3 */
4
5a9eb105 5#include "putty.h"
6
7440fd44 7#include <commctrl.h>
8
ae62eaeb 9FontSpec *platform_default_fontspec(const char *name)
9a30e26b 10{
ae62eaeb 11 if (!strcmp(name, "Font"))
12 return fontspec_new("Courier New", 0, 10, ANSI_CHARSET);
13 else
14 return fontspec_new("", 0, 0, 0);
9a30e26b 15}
16
17Filename platform_default_filename(const char *name)
18{
19 Filename ret;
20 if (!strcmp(name, "LogFileName"))
21 strcpy(ret.path, "putty.log");
22 else
23 *ret.path = '\0';
24 return ret;
25}
26
c85623f9 27char *platform_default_s(const char *name)
5a9eb105 28{
7374c779 29 if (!strcmp(name, "SerialLine"))
30 return dupstr("COM1");
5a9eb105 31 return NULL;
32}
33
c85623f9 34int platform_default_i(const char *name, int def)
5a9eb105 35{
5a9eb105 36 return def;
37}