]> Dogcows Code - chaz/openbox/blobdiff - otk/pseudorendercontrol.hh
free the colors on shutdown
[chaz/openbox] / otk / pseudorendercontrol.hh
index c88ae931ecd17cc9f01d5f5c414d5ad72b49160b..27d0620604b290dd9355462678d09a69fff8f3bb 100644 (file)
@@ -8,19 +8,8 @@ namespace otk {
 
 class PseudoRenderControl : public RenderControl {
 private:
-  // color tables, meaning, 256 (possibly) different shades of each color,
-  // based on the number of bits there are available for each color in the
-  // visual
-  unsigned char _red_color_table[256];
-  unsigned char _green_color_table[256];
-  unsigned char _blue_color_table[256];
-
-  int _cpc; // colors-per-channel: must be a value between [2,6]
-  int _bpp; // bits-per-pixel
-
-  // These are only used for !TrueColor visuals
-  XColor *_colors;
-  int _ncolors;
+  int _ncolors;    // number of allocated colors, size of the XColor array
+  XColor *_colors; // the valid allocated colors
   
   virtual void reduceDepth(Surface &sf, XImage *im) const;
   
This page took 0.022642 seconds and 4 git commands to generate.