[Xcircuit-dev] XCircuit and strange colormaps

R. Timothy Edwards tim at stravinsky.jhuapl.edu
Fri May 10 10:06:19 PDT 2002


Dear Eric,

   This seems to have been precipitated by a change that was supposed
to *fix* things in 8-bit mode, not break them.  Compare routine
CvtStringToPixel between version 2.5.4 and earlier versions; you
might get better results by changing it back to the original.

   You also might have encountered "bug #5" (see the Manifest file,
down toward the bottom), in which if your 8-bit colormap is close to
being out of spare colors, and the allocation runs out in the middle
of xcircuit's allocating all its colors, then the colormap may never
be installed and colors will certainly be screwed up.  I could never
produce this problem on my machine, so I have always considered it
too rare to be a worry.  But now, you make me wonder.

   And, it could be a conflict between two systems implementing
the same X routine differently;  the problem I was trying to correct
with the change to CvtStringToPixel in version 2.5.4 seemed awfully
suspicious, in that XLookupColor was returning "success" but had a
trash value in cvexact.pixel.  If that's the case, reverting
CvtStringToPixel to the original form might work for you.

   Finally, there's one more thing I thought of:  it may be that
xcircuit.c, line 2268

   XtAppAddConverter(app, XtRString, XtRPixel,
		(XtConverter)CvtStringToPixel, NULL, 0);

should really be at line 2242; that is, it should be called before
XtOpenApplication() so that the same routine is applied to the fallback
resources as is applied to the application resources.  I suggest
trying this solution first (before making any changes to CvtStringToPixel).
At any rate, let me know what happens.

						Regards,
						Tim

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth at sourceforge.net
_______________________________________________
Xcircuit-dev mailing list
Xcircuit-dev at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcircuit-dev



More information about the Xcircuit-dev mailing list