summaryrefslogtreecommitdiff
path: root/otk/pseudorendercontrol.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-12 06:18:28 +0000
committerDana Jansens <danakj@orodu.net>2003-02-12 06:18:28 +0000
commit7a2a461582fe5213c1b24c86c8fef9dc18d5b60f (patch)
tree041fc375ba8c36da750676b5ede0b263f7f2a35b /otk/pseudorendercontrol.hh
parentdd89811570e9a8a651821a7d3b175244e3d61f01 (diff)
only store what we need to in the class
Diffstat (limited to 'otk/pseudorendercontrol.hh')
-rw-r--r--otk/pseudorendercontrol.hh14
1 files changed, 2 insertions, 12 deletions
diff --git a/otk/pseudorendercontrol.hh b/otk/pseudorendercontrol.hh
index 603fc4ba..27d06206 100644
--- a/otk/pseudorendercontrol.hh
+++ b/otk/pseudorendercontrol.hh
@@ -8,18 +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
- int _ncolors; // number of allocated colors, size of the XColor array
-
- XColor *_colors;
+ 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;