Mercurial > pidgin.yaz
changeset 2774:6fab04e257a5
[gaim-migrate @ 2787]
>>Comment By: Decklin
> I'm also curious as to why you didn't want the POINT_SIZE
> macro...
i just didn't see it before :)
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 20 Nov 2001 01:22:16 +0000 |
parents | a0fd8f91e294 |
children | 38c31679dd37 |
files | src/gtkimhtml.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkimhtml.c Tue Nov 20 01:01:22 2001 +0000 +++ b/src/gtkimhtml.c Tue Nov 20 01:22:16 2001 +0000 @@ -62,7 +62,8 @@ #define MAX_FONT_SIZE 7 #define DEFAULT_FONT_SIZE 3 -gint _point_sizes [] = { 80, 100, 120, 140, 200, 300, 400 }; +#define POINT_SIZE(x) (_point_sizes [(x) - 1]) +static gint _point_sizes [] = { 80, 100, 120, 140, 200, 300, 400 }; #define DEFAULT_PRE_FACE "courier" @@ -1930,7 +1931,7 @@ if (italics) newvals [SLANT] = "i"; if (fontsize) { - g_snprintf (fs, sizeof (fs), "%d", _point_sizes [MIN (fontsize, MAX_FONT_SIZE) - 1]); + g_snprintf (fs, sizeof (fs), "%d", POINT_SIZE (MIN (fontsize, MAX_FONT_SIZE))); newvals [PXLSZ] = "*"; newvals [PTSZ] = fs; } @@ -1961,7 +1962,7 @@ newvals [FMLY] = names [i]; g_snprintf (fs, sizeof (fs), "%d", - _point_sizes [MIN (fontsize, MAX_FONT_SIZE) - 1] / 10); + POINT_SIZE (MIN (fontsize, MAX_FONT_SIZE) - 1) / 10); newvals [PXLSZ] = fs; newvals [PTSZ] = "*";