--- rxvt-unicode/src/rxvttoolkit.h 2012/06/04 15:18:52 1.61 +++ rxvt-unicode/src/rxvttoolkit.h 2012/06/14 17:06:57 1.66 @@ -214,14 +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_MUL = 1 << 1, - DISPLAY_HAS_RENDER_CONV = 1 << 2, + DISPLAY_HAS_RENDER_CONV = 1 << 1, }; struct rxvt_display : refcounted @@ -355,8 +356,14 @@ bool alloc (rxvt_screen *screen, const rgba &color); void free (rxvt_screen *screen); - void get (rgba &color); - void get (XColor &color); + operator rgba () const + { + rgba c; + get (c); + return c; + } + void get (rgba &color) const; + void get (XColor &color) const; bool set (rxvt_screen *screen, const char *name); bool set (rxvt_screen *screen, const rgba &color);