ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvt.h
(Generate patch)

Comparing rxvt-unicode/src/rxvt.h (file contents):
Revision 1.396 by root, Thu Apr 1 00:58:38 2010 UTC vs.
Revision 1.397 by root, Thu Apr 1 01:01:44 2010 UTC

313#define RS_bgShift 0 313#define RS_bgShift 0
314#define RS_fgShift (RS_bgShift + Color_Bits) 314#define RS_fgShift (RS_bgShift + Color_Bits)
315#define RS_bgMask (RS_colorMask << RS_bgShift) 315#define RS_bgMask (RS_colorMask << RS_bgShift)
316#define RS_fgMask (RS_colorMask << RS_fgShift) 316#define RS_fgMask (RS_colorMask << RS_fgShift)
317 317
318// font styles 318// must have space for rxvt_fontset::fontCount * 2 + 2 values
319#define RS_Bold 0x08000000UL // value 1 319#define RS_fontShift (RS_fgShift + Color_Bits)
320#define RS_Italic 0x10000000UL // value 2 320#define RS_Careful (1UL << RS_fontShift) /* be careful when drawing these */
321#define RS_fontMask ((rxvt_fontset::fontCount << (RS_fontShift + 1)) | RS_Careful) // includes RS_Careful
321 322
322#define RS_styleCount 4 323// toggle this to force redraw, must be != RS_Careful and otherwise "pretty neutral"
323#define RS_styleMask (RS_Bold | RS_Italic) 324#define RS_redraw (2UL << RS_fontShift)
324#define RS_styleShift 27
325
326// fake styles
327#define RS_Blink 0x20000000UL // blink
328#define RS_RVid 0x40000000UL // reverse video
329#define RS_Uline 0x80000000UL // underline
330 325
331// 5 custom bits for extensions 326// 5 custom bits for extensions
332#define RS_customCount 16UL 327#define RS_customCount 16UL
333#define RS_customShift 23 328#define RS_customShift 23
334#define RS_customMask ((RS_customCount - 1UL) << RS_customShift) 329#define RS_customMask ((RS_customCount - 1UL) << RS_customShift)
335 330
336// must have space for rxvt_fontset::fontCount * 2 + 2 values 331// font styles
337#define RS_fontShift (RS_fgShift + Color_Bits) 332#define RS_Bold (1UL << RS_styleShift)
338#define RS_Careful (1UL << RS_fontShift) /* be careful when drawing these */
339#define RS_fontMask ((rxvt_fontset::fontCount << (RS_fontShift + 1)) | RS_Careful) // includes RS_Careful
340
341// toggle this to force redraw, must be != RS_Careful and otherwise "pretty neutral"
342#define RS_redraw (2UL << RS_fontShift) 333#define RS_Italic (2UL << RS_styleShift)
334
335#define RS_styleCount 4
336#define RS_styleShift 27
337#define RS_styleMask (RS_Bold | RS_Italic)
338
339// fake styles
340#define RS_Blink (1UL << 29)
341#define RS_RVid (1UL << 30) // reverse video
342#define RS_Uline (1UL << 31) // underline
343 343
344#define RS_baseattrMask (RS_Italic | RS_Bold | RS_Blink | RS_RVid | RS_Uline) 344#define RS_baseattrMask (RS_Italic | RS_Bold | RS_Blink | RS_RVid | RS_Uline)
345#define RS_attrMask (RS_baseattrMask | RS_fontMask) 345#define RS_attrMask (RS_baseattrMask | RS_fontMask)
346 346
347#define DEFAULT_RSTYLE (RS_None | (Color_fg << RS_fgShift) | (Color_bg << RS_bgShift)) 347#define DEFAULT_RSTYLE (RS_None | (Color_fg << RS_fgShift) | (Color_bg << RS_bgShift))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines