start of pseudo init
This commit is contained in:
parent
5e0fc865a8
commit
044c8ae416
2 changed files with 2 additions and 3 deletions
|
@ -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"));
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue