| 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 | if (!strcmp(name, "LogFileName")) |
| 20 | return filename_from_str("putty.log"); |
| 21 | else |
| 22 | return filename_from_str(""); |
| 23 | } |
| 24 | |
| 25 | char *platform_default_s(const char *name) |
| 26 | { |
| 27 | if (!strcmp(name, "SerialLine")) |
| 28 | return dupstr("COM1"); |
| 29 | return NULL; |
| 30 | } |
| 31 | |
| 32 | int platform_default_i(const char *name, int def) |
| 33 | { |
| 34 | return def; |
| 35 | } |