TODO: check wether -depth works as resource
TODO: digital clock gets nuked after searching
TODO: read .Xdefaults even when we have display resources, but give them lower priority
+ - use less "correct" color scaling that is compatible with libX11 and Xft
+ (avoids off-by-one colors resulting in striped backgrounds).
+ - the "depth" resource is now respected.
- add FORCE_UNBUFFERED_XFT define to features.h.
- double-buffered xft drawing did suffer from pixel offset issues
when pixmap transparency was enabled.
- slap in a using namespace std, might help on platforms that don't
follow C++ closely enough.
- fix mailto url regex, spotted within milliseconds by Jost Krieger.
- - use less "correct" color scaling that is compatible with libX11 and Xft
- (avoids off-by-one colors resulting in striped backgrounds).
7.7 Tue Feb 21 12:32:49 CET 2006
- use double-buffered drawing (xft fonts only). On many driver/hardware
// using a local pointer decreases code size a lot
xa = display->xa;
+ set (display);
+ extract_resources ();
+
#if XFT
if (rs[Rs_depth])
- set (display, strtol (rs[Rs_depth], 0, 0));
- else
+ select_visual (strtol (rs[Rs_depth], 0, 0));
#endif
- set (display);
-
- extract_resources ();
free (r_argv);
}
void
-rxvt_screen::set (rxvt_display *disp, int bitdepth)
+rxvt_screen::select_visual (int bitdepth)
{
- set (disp);
-
#if XFT
XVisualInfo vinfo;
{
depth = bitdepth;
visual = vinfo.visual;
- cmap = XCreateColormap (dpy, disp->root, visual, AllocNone);
+ cmap = XCreateColormap (dpy, display->root, visual, AllocNone);
}
#endif
}
#endif
void set (rxvt_display *disp);
- void set (rxvt_display *disp, int bitdepth);
+ void select_visual (int bitdepth);
void clear ();
};