]> asedeno.scripts.mit.edu Git - PuTTY.git/blob - windows/windefs.c
Change the semantics of 'FontSpec' so that it's a dynamically
[PuTTY.git] / windows / windefs.c
1 /*
2  * windefs.c: default settings that are specific to Windows.
3  */
4
5 #include "putty.h"
6
7 #include <commctrl.h>
8
9 FontSpec *platform_default_fontspec(const char *name)
10 {
11     if (!strcmp(name, "Font"))
12         return fontspec_new("Courier New", 0, 10, ANSI_CHARSET);
13     else
14         return fontspec_new("", 0, 0, 0);
15 }
16
17 Filename 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
27 char *platform_default_s(const char *name)
28 {
29     if (!strcmp(name, "SerialLine"))
30         return dupstr("COM1");
31     return NULL;
32 }
33
34 int platform_default_i(const char *name, int def)
35 {
36     return def;
37 }