From 3c58801448e74a54406491808ce9ead82592f10b Mon Sep 17 00:00:00 2001 From: root Date: Thu, 2 Feb 2006 12:51:22 +0000 Subject: [PATCH] *** empty log message *** --- src/rxvttoolkit.C | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rxvttoolkit.C b/src/rxvttoolkit.C index fe0337ff..06ad759d 100644 --- a/src/rxvttoolkit.C +++ b/src/rxvttoolkit.C @@ -569,10 +569,10 @@ rxvt_color::alloc (rxvt_screen *screen, const rgba &color) #if XFT XRenderPictFormat *format; - // FUCKING Xft gets it wrong, of course, so work around it - // transparency users should eat shit and die, and then + // 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 || screen->visual->c_class == DirectColor) + if ((screen->visual->c_class == TrueColor) && (format = XRenderFindVisualFormat (screen->xdisp, screen->visual))) { // the fun lies in doing everything manually... @@ -604,7 +604,7 @@ rxvt_color::alloc (rxvt_screen *screen, const rgba &color) c.green = color.g; c.blue = color.b; - if (screen->visual->c_class == TrueColor || screen->visual->c_class == DirectColor) + if (screen->visual->c_class == TrueColor) { c.pixel = (color.r * (screen->visual->red_mask >> ctz (screen->visual->red_mask )) / rgba::MAX_CC) << ctz (screen->visual->red_mask ) -- 2.34.1