--- rxvt-unicode/src/rxvtfont.h 2008/11/05 14:43:54 1.25 +++ rxvt-unicode/src/rxvtfont.h 2010/03/30 23:54:30 1.30 @@ -40,7 +40,7 @@ int ascent, descent, width, height; - void set_name (char *name); + void set_name (char *name_); rxvt_font (); virtual ~rxvt_font () { free (name); }; @@ -68,6 +68,8 @@ { char *fontdesc; + enum { fontCount = 127 }; // must be power-of-two - 1, also has to match RS_fontMask in rxvt.h + rxvt_fontset (rxvt_term *term); ~rxvt_fontset (); @@ -80,7 +82,7 @@ // font-id's MUST fit into a signed 16 bit integer, and within 0..255 rxvt_font *operator [] (int id) const { - return fonts[id & 0x7f]; + return fonts[id & fontCount]; } private: