]> Dogcows Code - chaz/openbox/commitdiff
start of pseudo init
authorDana Jansens <danakj@orodu.net>
Wed, 12 Feb 2003 01:14:02 +0000 (01:14 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 12 Feb 2003 01:14:02 +0000 (01:14 +0000)
otk/pseudorendercontrol.cc
otk/pseudorendercontrol.hh

index b3ee06c36de907c81611d2fa8a8afc3ba7ef0fad..c30e77f9b32c0609caae6bd7abd9976978f35ca8 100644 (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"));
index c88ae931ecd17cc9f01d5f5c414d5ad72b49160b..603fc4baa6ea4ac6676a6c6e4b67f1ebca3ec569 100644 (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;
   
This page took 0.02338 seconds and 4 git commands to generate.