]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - windows/windefs.c
Change the semantics of 'FontSpec' so that it's a dynamically
[PuTTY.git] / windows / windefs.c
index 6fd6f0c97da3c4f3e97c2a892bc796fc3c30ed7f..4296bb0146ccb5a5fe623dafe274f01361751505 100644 (file)
@@ -6,18 +6,12 @@
 
 #include <commctrl.h>
 
-FontSpec platform_default_fontspec(const char *name)
+FontSpec *platform_default_fontspec(const char *name)
 {
-    FontSpec ret;
-    if (!strcmp(name, "Font")) {
-       strcpy(ret.name, "Courier New");
-       ret.isbold = 0;
-       ret.charset = ANSI_CHARSET;
-       ret.height = 10;
-    } else {
-       ret.name[0] = '\0';
-    }
-    return ret;
+    if (!strcmp(name, "Font"))
+        return fontspec_new("Courier New", 0, 10, ANSI_CHARSET);
+    else
+        return fontspec_new("", 0, 0, 0);
 }
 
 Filename platform_default_filename(const char *name)