From: Dana Jansens Date: Wed, 12 Feb 2003 01:14:02 +0000 (+0000) Subject: start of pseudo init X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;ds=inline;h=044c8ae416da315a7a111727c2f5dfc769c15125;p=chaz%2Fopenbox start of pseudo init --- diff --git a/otk/pseudorendercontrol.cc b/otk/pseudorendercontrol.cc index b3ee06c3..c30e77f9 100644 --- a/otk/pseudorendercontrol.cc +++ b/otk/pseudorendercontrol.cc @@ -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")); diff --git a/otk/pseudorendercontrol.hh b/otk/pseudorendercontrol.hh index c88ae931..603fc4ba 100644 --- a/otk/pseudorendercontrol.hh +++ b/otk/pseudorendercontrol.hh @@ -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;