| This code will return the number of supported depths and what they
are on a machine running DECWindows. I think you can get the current
depth from the visual data structure...but, I'm not sure about that.
This code on my 3100 returns two supported depths of 1 and 8.
-Bill
#include <stdio.h>
#include <decw$include/DwtAppl.h>
#include <decw$include/Xlib.h>
Widget top_level;
static Screen *screen;
main(argc,argv)
unsigned int argc;
char *argv[];
{
int i;
top_level = XtInitialize("WEDGY","hiclass",
NULL,0,
&argc,argv);
screen = XtScreen(top_level);
printf("%d\n",screen->ndepths);
for(i=0;i<screen->ndepths;i++)
printf("%d\n",screen->depths++->depth);
}
|
| The current version of PC DECwindows only supports a depth 4 StaticColor
visual on a color screen. The requests AllocColorCells, AllocColorPlanes,
StoreColor[s] will fail on a StaticColor colormap.
Questions specific to PC DECwindows are better asked in RANGER::PCDECWINDOWS
|
| The PC DECwindows X server (V2) supports only 4-plane "static color" on the
EGA and VGA. If you are seeing errors "creating color maps" or
"allocating color cells", then the problem is that "psuedo color"
is not supported on this server.
You should check out the PC DECwindows conference (MOSAIC::PCDECWINDOWS).
You should also check out the utility xdpyinfo. It will tell you
many of the servers characteristics.
The next release of the PC DECwindows server will be much more robust in
its color support. Psuedo color will be supported on VGA and 8514/A clones.
The 8514/A will run in 8 plane (in the high memory configuration). Only
one colormap can be created with any of these video systems, so you may
sill see errors with colormap creation.
Your customer will likely be disappointed with the EGA. At 640x350 resolution
it is really too small for DECwindows use. It also has the problem
that pixels are not square. The VGA should really be considered the
minimum configuration. With a multi-sync monitor you can get 800x600.
For just a little more money you can get an 8514/A clone that will
do 1024x768 and 8 plane psuedo color.
- Jim
|