windefs.c 700 B

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