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.391 by sf-exg, Thu Apr 1 00:12:33 2010 UTC vs.
Revision 1.395 by root, Thu Apr 1 00:41:07 2010 UTC

306 SECONDARY, 306 SECONDARY,
307}; 307};
308 308
309#define RS_None 0 309#define RS_None 0
310 310
311#ifndef USE_256_COLORS 311#define RS_colorMask ((1UL << Color_Bits) - 1UL)
312#define RS_colorMask 0x0000007fUL // 128 colors
313#else
314#define RS_colorMask 0x000001ffUL
315#endif
316#define RS_fgShift 0 312#define RS_bgShift 0
317#define RS_bgShift Color_Bits 313#define RS_fgShift (RS_bgShift + Color_Bits)
314#define RS_bgMask (RS_colorMask << RS_bgShift)
318#define RS_fgMask (RS_colorMask << RS_fgShift) 315#define RS_fgMask (RS_colorMask << RS_fgShift)
319#define RS_bgMask (RS_colorMask << RS_bgShift)
320 316
321// font styles 317// font styles
322#define RS_Bold 0x08000000UL // value 1 318#define RS_Bold 0x08000000UL // value 1
323#define RS_Italic 0x10000000UL // value 2 319#define RS_Italic 0x10000000UL // value 2
324 320
326#define RS_Blink 0x20000000UL // blink 322#define RS_Blink 0x20000000UL // blink
327#define RS_RVid 0x40000000UL // reverse video 323#define RS_RVid 0x40000000UL // reverse video
328#define RS_Uline 0x80000000UL // underline 324#define RS_Uline 0x80000000UL // underline
329 325
330// 5 custom bits for extensions 326// 5 custom bits for extensions
331#define RS_customCount 16 327#define RS_customCount 16UL
332#define RS_customMask 0x07800000UL
333#define RS_customShift 23 328#define RS_customShift 23
329#define RS_customMask ((RS_customCount - 1UL) << RS_customShift)
334 330
335// must have space for rxvt_fontset::fontCount * 2 + 2 values 331// must have space for rxvt_fontset::fontCount * 2 + 2 values
336#define RS_fontMask 0x007c0000UL // includes RS_Careful 332#define RS_fontShift (RS_fgShift + Color_Bits)
337#define RS_fontShift 18
338#define RS_Careful 0x00010000UL /* be careful when drawing these */ 333#define RS_Careful (1UL << RS_fontShift) /* be careful when drawing these */
334#define RS_fontMask ((rxvt_fontset::fontCount << (RS_fontShift + 1)) | RS_Careful) // includes RS_Careful
339 335
340// toggle this to force redraw, must be != RS_Careful and otherwise "pretty neutral" 336// toggle this to force redraw, must be != RS_Careful and otherwise "pretty neutral"
341#define RS_redraw 0x00020000UL 337#define RS_redraw (2UL << RS_fontShift)
342 338
343#define RS_styleCount 4 339#define RS_styleCount 4
344#define RS_styleMask (RS_Bold | RS_Italic) 340#define RS_styleMask (RS_Bold | RS_Italic)
345#define RS_styleShift 27 341#define RS_styleShift 27
346 342

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines