--- rxvt-unicode/src/rxvtfont.h 2010/05/23 00:08:53 1.38 +++ rxvt-unicode/src/rxvtfont.h 2010/05/23 00:12:02 1.39 @@ -72,8 +72,15 @@ { char *fontdesc; - enum { fontCount = 7 }; // must be power-of-two - 1, also has to match RS_fontMask in rxvt.h - enum { firstFont = 2 }; // index of first font in set + // must be power-of-two - 1, also has to match RS_fontMask in rxvt.h +#if USE_256_COLORS + enum { fontCount = 7 }; // 4 extra colors bits, 4 fewer fontcount bits +#else + enum { fontCount = 127 }; +#endif + + // index of first font in set + enum { firstFont = 2 }; rxvt_fontset (rxvt_term *term); ~rxvt_fontset ();