--- rxvt-unicode/src/rxvttoolkit.C 2006/01/30 16:12:58 1.35 +++ rxvt-unicode/src/rxvttoolkit.C 2006/01/30 17:49:48 1.37 @@ -605,7 +605,7 @@ // FUCKING Xft gets it wrong, of course, so work around it // transparency users should eat shit and die, and then // XRenderQueryPictIndexValues themselves plenty. - if (screen->visual->c_class == TrueColor + if ((screen->visual->c_class == TrueColor || screen->visual->c_class == DirectColor) && (format = XRenderFindVisualFormat (screen->xdisp, screen->visual))) { // the fun lies in doing everything manually... @@ -635,7 +635,7 @@ return false; #else - if (screen->visual->c_class == TrueColor) + if (screen->visual->c_class == TrueColor || screen->visual->c_class == DirectColor) { p = (rgba.r * (screen->visual->red_mask >> ctz (screen->visual->red_mask )) / rxvt_rgba::MAX_CC) << ctz (screen->visual->red_mask )