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.323 by ayin, Sat Nov 24 10:32:33 2007 UTC vs.
Revision 1.324 by root, Mon Nov 26 12:17:48 2007 UTC

1271 return base; 1271 return base;
1272 } 1272 }
1273 1273
1274 bool option (uint8_t opt) const NOTHROW 1274 bool option (uint8_t opt) const NOTHROW
1275 { 1275 {
1276 if (!opt) return 0;
1277
1278 --opt;
1276 return options[opt >> 3] & (1 << (opt & 7)); 1279 return options[opt >> 3] & (1 << (opt & 7));
1277 } 1280 }
1278 1281
1279 void set_option (uint8_t opt, bool set = true) NOTHROW 1282 void set_option (uint8_t opt, bool set = true) NOTHROW
1280 { 1283 {
1284 if (!opt)
1285 return;
1286
1287 --opt;
1281 if (set) 1288 if (set)
1282 options[opt >> 3] |= (1 << (opt & 7)); 1289 options[opt >> 3] |= (1 << (opt & 7));
1283 else 1290 else
1284 options[opt >> 3] &= ~(1 << (opt & 7)); 1291 options[opt >> 3] &= ~(1 << (opt & 7));
1285 } 1292 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines