From 044c8ae416da315a7a111727c2f5dfc769c15125 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 12 Feb 2003 01:14:02 +0000 Subject: [PATCH] start of pseudo init --- otk/pseudorendercontrol.cc | 2 +- otk/pseudorendercontrol.hh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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; -- 2.45.2