mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-05 05:22:47 -05:00
Change the semantics of 'FontSpec' so that it's a dynamically
allocated type. The main reason for this is to stop it from taking up a fixed large amount of space in every 'struct value' subunion in conf.c, although that makes little difference so far because Filename is still doing the same thing (and is therefore next on my list). However, the removal of its arbitrary length limit is not to be sneezed at. [originally from svn r9314]
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user