Quoting Neale Banks <[EMAIL PROTECTED]>: > On Wed, 10 Jul 2002 [EMAIL PROTECTED] wrote: > > [...] > > The menus may have a "gradient" or "bitmap" backgroundPixmap. > > Check with editres: > > "Commands->Get Tree" > > select the xterm window > > select the "fontMenu" toggle > > "Commands->Show Resource Box" > > check if the backgroundPixmap is anything other than > "XtUnspecifiedPixmap" > > Indeed backgroundPixmap has a "gradient", and I can make the symptoms > move > by tweaking the values of the gradient. > > > This may happen because menu entries are painted with a xor gc, and > the > > effect is more visible if you are running at 8bpp. > > AFAICT, I'm running 16bpp (pardon the ignorance, but how would I > confirm > this?). I take it that means it would be expected to be worse at > 8bpp?
Run xdpyinfo to verify the depth. Yes, in 8bpp it is worse, but in 16bpp the number of colors is slightly limited, gradients aren't always very smooth (and it's inverse, produced by the xor gc may be even worser). > > If this is the case, you can add: > > XTerm*SimpleMenu.backgroundPixmap: XtUnspecifiedPixmap > > to your $HOME/.Xdefaults > > Yes, using editres to change the backgroundPixmap value to > XtUnspecifiedPixmap makes the symptoms go away. > > Is this a bug? If so, in what? No, it is not a bug. If you run at 24bpp it should not be noticeable. This is a "feature" of the Xaw SimpleMenu widget when using a backgroundPixmap. To fix this it is required to change the code to not use a xor gc, and to get a better visual effect, it should also mask pixmaps, instead or painting with the background color (this is valid for all widgets, mostly notably the leftPixmap resource of LabelWidget and it's subclasses). I will put this in my todo list of updates to Xaw. > FWIW, I've just reproduced it with the stock trident_drv.o in 4.2, so > I > figure it's not to be blamed on the trident_drv.o from > http://www.xfree86.org/~alanh > > Thanks, > Neale. Paulo _______________________________________________ Xpert mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xpert
