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.267 by ayin, Sat Feb 17 16:43:58 2007 UTC vs.
Revision 1.268 by ayin, Tue May 1 21:10:04 2007 UTC

687#define Col2Pixel(col) ((int32_t)Width2Pixel(col)) 687#define Col2Pixel(col) ((int32_t)Width2Pixel(col))
688#define Row2Pixel(row) ((int32_t)Height2Pixel(row)) 688#define Row2Pixel(row) ((int32_t)Height2Pixel(row))
689#define Width2Pixel(n) ((int32_t)(n) * (int32_t)fwidth) 689#define Width2Pixel(n) ((int32_t)(n) * (int32_t)fwidth)
690#define Height2Pixel(n) ((int32_t)(n) * (int32_t)fheight) 690#define Height2Pixel(n) ((int32_t)(n) * (int32_t)fheight)
691 691
692#define OPTION(opt) (options & (opt)) 692#define OPTION(opt) option(opt)
693#define DEFAULT_OPTIONS (Opt_scrollBar \
694 | Opt_scrollTtyOutput \
695 | Opt_jumpScroll \
696 | Opt_secondaryScreen \
697 | Opt_secondaryScroll \
698 | Opt_pastableTabs \
699 | Opt_intensityStyles)
700 693
701// for m >= -n, ensure remainder lies between 0..n-1 694// for m >= -n, ensure remainder lies between 0..n-1
702#define MOD(m,n) (((m) + (n)) % (n)) 695#define MOD(m,n) (((m) + (n)) % (n))
703 696
704#define LINENO(n) MOD (term_start + int(n), total_rows) 697#define LINENO(n) MOD (term_start + int(n), total_rows)
1316 base += minBrightCOLOR - minCOLOR; 1309 base += minBrightCOLOR - minCOLOR;
1317#endif 1310#endif
1318 return base; 1311 return base;
1319 } 1312 }
1320 1313
1321 bool option (uint32_t opt) const NOTHROW 1314 bool option (uint8_t opt) const NOTHROW
1322 { 1315 {
1323 return OPTION (opt); 1316 return options[opt >> 3] & (1 << (opt & 7));
1324 } 1317 }
1325 1318
1326 void set_option (uint32_t opt, bool set) NOTHROW 1319 void set_option (uint8_t opt, bool set) NOTHROW
1327 { 1320 {
1328 if (set) 1321 if (set)
1329 options |= opt; 1322 options[opt >> 3] |= (1 << (opt & 7));
1330 else 1323 else
1331 options &= ~opt; 1324 options[opt >> 3] &= ~(1 << (opt & 7));
1332 } 1325 }
1333 1326
1334 void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW; 1327 void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW;
1335 void scr_blank_screen_mem (line_t &l, rend_t efs) const NOTHROW; 1328 void scr_blank_screen_mem (line_t &l, rend_t efs) const NOTHROW;
1336 int scr_scroll_text (int row1, int row2, int count) NOTHROW; 1329 int scr_scroll_text (int row1, int row2, int count) NOTHROW;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines