--- rxvt-unicode/src/rxvttoolkit.h 2012/06/06 20:22:04 1.63 +++ rxvt-unicode/src/rxvttoolkit.h 2012/06/14 17:06:57 1.66 @@ -214,15 +214,15 @@ #endif void set (rxvt_display *disp); - void select_visual (int bitdepth); + void select_visual (int id); + void select_depth (int bitdepth); // select visual by depth void clear (); }; -enum { +enum +{ DISPLAY_HAS_RENDER = 1 << 0, - DISPLAY_HAS_RENDER_10 = 1 << 1, - DISPLAY_HAS_RENDER_MUL = 1 << 2, - DISPLAY_HAS_RENDER_CONV = 1 << 3, + DISPLAY_HAS_RENDER_CONV = 1 << 1, }; struct rxvt_display : refcounted @@ -356,6 +356,12 @@ bool alloc (rxvt_screen *screen, const rgba &color); void free (rxvt_screen *screen); + operator rgba () const + { + rgba c; + get (c); + return c; + } void get (rgba &color) const; void get (XColor &color) const;