[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

3153.0. "Colors for Default ColorMap" by TADSKI::PAPPAS () Tue Jul 31 1990 14:41

    Could someone tell me what colors are placed into the default
    colormap for four plane systems ?  How is the colormap initialized
    and can it be overridden at the system level ?
    
    Jay
    
T.RTitleUserPersonal
Name
DateLines
3153.1DECWIN::FISHERLocutus: Fact or Fraud?Wed Aug 01 1990 17:4325
The default colormap, by definition of the x protocol, is initialized only with
BlackPixel (usually color black, but not necessarily) and WhitePixel (ditto
with white).

You probably care at a higher level, though.  Other clients can allocate colors;
in particular the session manager, window manager etc.  How many they allocate
depends on their settings.  If all the settings in customize colors are pure
black and pure white, they should allocate (almost) no additional colors.
If you set everything to a different value, I think there are about 6:

screen fg
screen bg
window fg
window bg
window highlight
window border

Other applications may define things differently as well, and that would also
add colors.

You can't really override this from a system level.  It is up to each individual
user to customize his/her own stuff, and that is what makes the big difference
in color cells used.

Burns
3153.2Map fullDSTEG1::HOSSFELDI'm so confused!Thu Aug 02 1990 08:405
Is there a way to increase the map size? I have motif loaded and when I select
the sm customize window opt I get an error that the color map is full and 
wouldn't let me change any. 

Paul H.
3153.3Change the map size by buying new hardware! :-)DECWIN::FISHERLocutus: Fact or Fraud?Thu Aug 02 1990 11:2312
The map size is tied directly to the hardware colormap size, which is tied
directly to the number of bits/pixel.  If the map is full, the only choices are
to 

1)  Try to reuse the same colors that are already in use (e.g. use the background
and foreground resources to find the colors that most others are using)

2)  Try to keep there from being so many colors already allocated (e.g. change
the customize settings so that there are fewer different colors, or else start
your application sooner)

3)  Use a new colormap