start of pseudo init

This commit is contained in:
Dana Jansens 2003-02-12 01:14:02 +00:00
parent 5e0fc865a8
commit 044c8ae416
2 changed files with 2 additions and 3 deletions

View file

@ -29,7 +29,7 @@ PseudoRenderControl::PseudoRenderControl(int screen)
_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"));

View file

@ -17,10 +17,9 @@ private:
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;