_cpc = 4; // XXX THIS SHOULD BE A USER OPTION
_ncolors = _cpc * _cpc * _cpc;
- if (_cpc < 2 || ncolors > 1 << depth) {
+ if (_cpc < 2 || _ncolors > 1 << depth) {
fprintf(stderr,
_("PseudoRenderControl: Invalid colormap size. Using maximum size
available.\n"));
int _cpc; // colors-per-channel: must be a value between [2,6]
int _bpp; // bits-per-pixel
+ int _ncolors; // number of allocated colors, size of the XColor array
- // These are only used for !TrueColor visuals
XColor *_colors;
- int _ncolors;
virtual void reduceDepth(Surface &sf, XImage *im) const;