# HG changeset patch # User Eric Warmenhoven # Date 1006219336 0 # Node ID 6fab04e257a53601a6ca450f6c4cd0c9f3f0404d # Parent a0fd8f91e294232ecf111b06942219e9b4a579a0 [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 diff -r a0fd8f91e294 -r 6fab04e257a5 src/gtkimhtml.c --- 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] = "*";