5a9eb105 |
1 | /* |
2 | * windefs.c: default settings that are specific to Windows. |
3 | */ |
4 | |
5 | #include <windows.h> |
6 | #include <commctrl.h> |
7 | |
8 | #include "winstuff.h" |
9 | #include "puttymem.h" |
10 | |
11 | #include "putty.h" |
12 | |
9a30e26b |
13 | FontSpec platform_default_fontspec(const char *name) |
14 | { |
15 | FontSpec ret; |
16 | if (!strcmp(name, "Font")) { |
17 | strcpy(ret.name, "Courier New"); |
18 | ret.isbold = 0; |
19 | ret.charset = ANSI_CHARSET; |
20 | ret.height = 10; |
21 | } else { |
22 | ret.name[0] = '\0'; |
23 | } |
24 | return ret; |
25 | } |
26 | |
27 | Filename platform_default_filename(const char *name) |
28 | { |
29 | Filename ret; |
30 | if (!strcmp(name, "LogFileName")) |
31 | strcpy(ret.path, "putty.log"); |
32 | else |
33 | *ret.path = '\0'; |
34 | return ret; |
35 | } |
36 | |
c85623f9 |
37 | char *platform_default_s(const char *name) |
5a9eb105 |
38 | { |
5a9eb105 |
39 | return NULL; |
40 | } |
41 | |
c85623f9 |
42 | int platform_default_i(const char *name, int def) |
5a9eb105 |
43 | { |
5a9eb105 |
44 | return def; |
45 | } |