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.322 by ayin, Thu Nov 22 15:07:10 2007 UTC vs.
Revision 1.326 by root, Tue Nov 27 17:45:47 2007 UTC

18# define ENABLE_XEMBED 1 18# define ENABLE_XEMBED 1
19# define ENABLE_EWMH 1 19# define ENABLE_EWMH 1
20# define ENABLE_XIM_ONTHESPOT 1 20# define ENABLE_XIM_ONTHESPOT 1
21# define CURSOR_BLINK 1 21# define CURSOR_BLINK 1
22# define OPTION_HC 1 22# define OPTION_HC 1
23# define BUILTIN_GLYPHS 1
23#else 24#else
24# define ENABLE_MINIMAL 1 25# define ENABLE_MINIMAL 1
25#endif 26#endif
26 27
27#include <limits.h> 28#include <limits.h>
1052 xevent_watcher rootwin_ev; 1053 xevent_watcher rootwin_ev;
1053#endif 1054#endif
1054#ifdef HAVE_BG_PIXMAP 1055#ifdef HAVE_BG_PIXMAP
1055 int update_background (); 1056 int update_background ();
1056#if TRACE_PIXMAPS 1057#if TRACE_PIXMAPS
1057 int trace_update_background (const char* file, int line); 1058 int trace_update_background (const char *file, int line);
1058# define update_background() trace_update_background (__FILE__, __LINE__) 1059# define update_background() trace_update_background (__FILE__, __LINE__)
1059#endif 1060#endif
1060 void update_background_cb (ev::timer &w, int revents); 1061 void update_background_cb (ev::timer &w, int revents);
1061 ev::timer update_background_ev; 1062 ev::timer update_background_ev;
1062#endif 1063#endif
1270 return base; 1271 return base;
1271 } 1272 }
1272 1273
1273 bool option (uint8_t opt) const NOTHROW 1274 bool option (uint8_t opt) const NOTHROW
1274 { 1275 {
1276 if (!opt)
1277 return 0;
1278
1279 --opt;
1275 return options[opt >> 3] & (1 << (opt & 7)); 1280 return options[opt >> 3] & (1 << (opt & 7));
1276 } 1281 }
1277 1282
1278 void set_option (uint8_t opt, bool set = true) NOTHROW 1283 void set_option (uint8_t opt, bool set = true) NOTHROW
1279 { 1284 {
1285 if (!opt)
1286 return;
1287
1288 --opt;
1280 if (set) 1289 if (set)
1281 options[opt >> 3] |= (1 << (opt & 7)); 1290 options[opt >> 3] |= (1 << (opt & 7));
1282 else 1291 else
1283 options[opt >> 3] &= ~(1 << (opt & 7)); 1292 options[opt >> 3] &= ~(1 << (opt & 7));
1284 } 1293 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines