From: Eric W. <war...@us...> - 2001-11-20 01:22:18
|
Update of /cvsroot/gaim/gaim/src In directory usw-pr-cvs1:/tmp/cvs-serv25908 Modified Files: gtkimhtml.c Log Message: >>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 :) Index: gtkimhtml.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/gtkimhtml.c,v retrieving revision 1.76 retrieving revision 1.77 diff -u -d -r1.76 -r1.77 --- gtkimhtml.c 2001/11/19 11:14:54 1.76 +++ gtkimhtml.c 2001/11/20 01:22:16 1.77 @@ -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] = "*"; |