[Fwd: Put image to nondefault visuial: help needed]

Glynn Clements glynn at gclements.plus.com
Tue Nov 28 14:31:31 PST 2006


Andrei Zaparii wrote:

> I'm now trying to fix X application that puts some informational icons 
> on all windows (xxkb). When window is created with default visual 
> everything is going right. Sim, instant messenger using qt3.3, creates 
> window vis visual different from default. In my case default is 24bit 
> DirectColor and qt makes window with 32bit TrueColor.
> I tried to create XImage from XpmImage with XpmAttributes set for 
> visual, colormap and depth from attributes for the window and valuemask 
> = XpmVisual | XpmColormap | XpmDepth. Image is successfuly created but 
> XPutImage still failing with BadMatch.
> Can anyone recomend me some way to fix the problem or help me to 
> understand what i'm doing wrong?

Have you examined the XImage structure which is created by
XpmCreateImageFromXpmImage()?

XPutImage() should only care that the depth is correct; the Visual and
Colormap shouldn't matter.

-- 
Glynn Clements <glynn at gclements.plus.com>



More information about the xorg mailing list