| 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 | |
| 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 | |
| 37 | char *platform_default_s(const char *name) |
| 38 | { |
| 39 | return NULL; |
| 40 | } |
| 41 | |
| 42 | int platform_default_i(const char *name, int def) |
| 43 | { |
| 44 | return def; |
| 45 | } |