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

Comparing cvsroot/rxvt-unicode/src/rxvt.h (file contents):
Revision 1.333 by root, Fri Dec 14 05:25:25 2007 UTC vs.
Revision 1.334 by ayin, Fri Dec 14 11:11:31 2007 UTC

655#define Col2Pixel(col) ((int32_t)Width2Pixel(col)) 655#define Col2Pixel(col) ((int32_t)Width2Pixel(col))
656#define Row2Pixel(row) ((int32_t)Height2Pixel(row)) 656#define Row2Pixel(row) ((int32_t)Height2Pixel(row))
657#define Width2Pixel(n) ((int32_t)(n) * (int32_t)fwidth) 657#define Width2Pixel(n) ((int32_t)(n) * (int32_t)fwidth)
658#define Height2Pixel(n) ((int32_t)(n) * (int32_t)fheight) 658#define Height2Pixel(n) ((int32_t)(n) * (int32_t)fheight)
659 659
660// for m >= -n, ensure remainder lies between 0..n-1
661#define MOD(m,n) (((m) + (n)) % (n))
662
663#define LINENO(n) MOD (term_start + int(n), total_rows) 660#define LINENO(n) MOD (term_start + int(n), total_rows)
664#define ROW(n) row_buf [LINENO (n)] 661#define ROW(n) row_buf [LINENO (n)]
665 662
666/* how to build & extract colors and attributes */ 663/* how to build & extract colors and attributes */
667#define GET_BASEFG(x) (((x) & RS_fgMask)) 664#define GET_BASEFG(x) (((x) & RS_fgMask))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines