int shade = rs[Rs_shade] ? atoi (rs[Rs_shade]) : 100;
rgba c;
- pix_colors_focused [Color_tint].get (this, c);
+ pix_colors_focused [Color_tint].get (c);
ShadeXImage (this, image, shade, c.r, c.g, c.b);
}
if (str[0] == '?' && !str[1])
{
rgba c;
- pix_colors_focused[color].get (this, c);
+ pix_colors_focused[color].get (c);
#if XFT
if (c.a != rgba::MAX_CC)
extract_resources ();
+ free (r_argv);
+
for (int i = NUM_RESOURCES; i--; )
if (rs [i] == resval_undef)
rs [i] = 0;
- free (r_argv);
-
#if ENABLE_PERL
if (!rs[Rs_perl_ext_1])
rs[Rs_perl_ext_1] = "default";
if (rs[Rs_fade])
{
rgba c;
- pix_colors [Color_fade].get (this, c);
+ pix_colors [Color_fade].get (c);
pix_colors_focused [idx].fade (this, atoi (rs[Rs_fade]), pix_colors_unfocused [idx], c);
}
#endif
/****************************************************************************/
#ifdef KEYSYM_RESOURCE
- class keyboard_manager;
+class keyboard_manager;
#endif
struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen {
- log_callback *log_hook; // log error messages through this hook, if != 0
+
+ // special markers with magic addresses
+ static const char resval_undef []; // options specifically unset
+ static const char resval_on []; // boolean options switched on
+ static const char resval_off []; // or off
+
+ log_callback *log_hook; // log error messages through this hook, if != 0
getfd_callback *getfd_hook; // convert remote to local fd, if != 0
#if ENABLE_PERL
rxvt_perl_term perl;
}
void
-rxvt_color::get (rxvt_screen *screen, rgba &color)
+rxvt_color::get (rgba &color)
{
#if XFT
color.r = c.color.red;
rxvt_color::fade (rxvt_screen *screen, int percent, rxvt_color &result, const rgba &to)
{
rgba c;
- get (screen, c);
+ get (c);
result.set (
screen,
bool alloc (rxvt_screen *screen, const rgba &color);
void free (rxvt_screen *screen);
- void get (rxvt_screen *screen, rgba &color);
+ void get (rgba &color);
bool set (rxvt_screen *screen, const char *name);
bool set (rxvt_screen *screen, const rgba &color);
if (last_top < scrollBar.top)
XClearArea (xdisp, scrollBar.win,
sb_shadow, last_top,
- sbwidth + 1, (scrollBar.top - last_top), False);
+ sbwidth + 1, scrollBar.top - last_top, False);
if (scrollBar.bot < last_bot)
XClearArea (xdisp, scrollBar.win,
sb_shadow, scrollBar.bot,
- sbwidth + 1, (last_bot - scrollBar.bot), False);
+ sbwidth + 1, last_bot - scrollBar.bot, False);
}
else
XClearWindow (xdisp, scrollBar.win);