Colour differences in Solaris 8

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
Colour differences in Solaris 8

Submitted by Anonymous on Fri, 04/25/2003 - 04:21.

Sir,
We developed a package in mOtif on Solaris 7.0. We have our own colour map built. and it worked fine on solaris 7. but on solaris 8, the entire colour map goes haywire, the background colour got changed. The fonts that were working on solaris 7.0 are not working solaris 8.0.

Can we make the colormap and fonts independent of the operating system we are working on. kindly help. Because of the colormap our project delivery is at stake

Sat, 04/26/2003 - 15:19#1

Sat, 04/26/2003 - 15:19#1

ICS_support

Colour differences in Solaris 8

The whole point of X is to make the applications not be platform-specific. The same software should run on multiple systems and display reasonably on different servers.

I suspect that you have made some assumptions about the server, probably about what White and Black pixels are. They are usually 1 and 0 but not in the same order. The program "xdpyinfo" may show you these values for the two servers that you are using. Rather than hard-code values, you use the macros that Xlib provides to access the values. In addition, when creating your own colormap, you must explicitly load Black and White into the map. It may have happened that you had them at positions 1 and 0 on the Solaris 7 platform.