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 | |
9a30e26b |
9 | FontSpec platform_default_fontspec(const char *name) |
10 | { |
11 | FontSpec ret; |
12 | if (!strcmp(name, "Font")) { |
13 | strcpy(ret.name, "Courier New"); |
14 | ret.isbold = 0; |
15 | ret.charset = ANSI_CHARSET; |
16 | ret.height = 10; |
17 | } else { |
18 | ret.name[0] = '\0'; |
19 | } |
20 | return ret; |
21 | } |
22 | |
23 | Filename platform_default_filename(const char *name) |
24 | { |
25 | Filename ret; |
26 | if (!strcmp(name, "LogFileName")) |
27 | strcpy(ret.path, "putty.log"); |
28 | else |
29 | *ret.path = '\0'; |
30 | return ret; |
31 | } |
32 | |
c85623f9 |
33 | char *platform_default_s(const char *name) |
5a9eb105 |
34 | { |
7374c779 |
35 | if (!strcmp(name, "SerialLine")) |
36 | return dupstr("COM1"); |
5a9eb105 |
37 | return NULL; |
38 | } |
39 | |
c85623f9 |
40 | int platform_default_i(const char *name, int def) |
5a9eb105 |
41 | { |
5a9eb105 |
42 | return def; |
43 | } |