--- rxvt-unicode/src/rxvt.h 2005/12/31 17:16:17 1.174 +++ rxvt-unicode/src/rxvt.h 2005/12/31 19:30:25 1.176 @@ -378,21 +378,24 @@ SECONDARY, }; -#define RS_None 0 /* Normal */ +#define RS_None 0 -#define RS_fgMask 0x0000007fUL /* 128 colors */ -#define RS_bgMask 0x00003f80UL /* 128 colors */ +#define RS_fgMask 0x0000007fUL // 128 colors +#define RS_bgMask 0x00003f80UL // 128 colors // font styles #define RS_Bold 0x00004000UL // value 1 #define RS_Italic 0x00008000UL // value 2 // fake styles -#define RS_Blink 0x00010000UL /* blink */ -#define RS_RVid 0x00020000UL /* reverse video */ -#define RS_Uline 0x00040000UL /* underline */ - -// 5 bits still to go +#define RS_Blink 0x00010000UL // blink +#define RS_RVid 0x00020000UL // reverse video +#define RS_Uline 0x00040000UL // underline + +// 5 custom bits for extensions +#define RS_customCount 32 +#define RS_customMask 0x00f80000UL +#define RS_customShift 19 // other flags #define RS_Careful 0x80000000UL /* be careful when drawing these */ @@ -575,6 +578,7 @@ Rs_boldFont, Rs_italicFont, Rs_boldItalicFont, + Rs_intensityStyles, #endif Rs_name, Rs_title, @@ -638,7 +642,6 @@ Rs_borderLess, Rs_lineSpace, Rs_cursorUnderline, - Rs_intensityStyles, #endif #if CURSOR_BLINK Rs_cursorBlink, @@ -1485,7 +1488,9 @@ int base = GET_BASEFG (r); #ifndef NO_BRIGHTCOLOR if (r & RS_Bold - && (!ENABLE_STYLES || OPTION (Opt_intensityStyles)) +# if ENABLE_STYLES + && OPTION (Opt_intensityStyles) +# endif && IN_RANGE_INC (base, minCOLOR, minBrightCOLOR)) base += minBrightCOLOR - minCOLOR; #endif @@ -1497,7 +1502,9 @@ int base = GET_BASEBG (r); #ifndef NO_BRIGHTCOLOR if (r & RS_Blink - && (!ENABLE_STYLES || OPTION (Opt_intensityStyles)) +# if ENABLE_STYLES + && OPTION (Opt_intensityStyles) +# endif && IN_RANGE_INC (base, minCOLOR, minBrightCOLOR)) base += minBrightCOLOR - minCOLOR; #endif