Index: GfxState.cc =================================================================== --- GfxState.cc (revision 23) +++ GfxState.cc (working copy) @@ -62,10 +62,12 @@ //------------------------------------------------------------------------ +#define nGfxBlendModeNames 17 + static struct { char *name; GfxBlendMode mode; -} gfxBlendModeNames[] = { +} gfxBlendModeNames[nGfxBlendModeNames] = { { "Normal", gfxBlendNormal }, { "Compatible", gfxBlendNormal }, { "Multiply", gfxBlendMultiply }, @@ -84,9 +86,6 @@ { "Color", gfxBlendColor }, { "Luminosity", gfxBlendLuminosity } }; - -#define nGfxBlendModeNames \ - ((int)((sizeof(gfxBlendModeNames) / sizeof(char *)))) //------------------------------------------------------------------------ //