openbox/otk/pseudorendercontrol.hh
Derek Foreman 1431cd1958 8bpp pseudo color. it's horrid code. the graphics are horrid.
I have done many terrible things and I'm so very very sorry. :(
2003-02-14 01:49:27 +00:00

25 lines
593 B
C++

// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
#ifndef __pseudorendercontrol_hh
#define __pseudorendercontrol_hh
#include "rendercontrol.hh"
namespace otk {
class PseudoRenderControl : public RenderControl {
private:
int _bpc; // number of bits per color
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;
public:
PseudoRenderControl(int screen);
virtual ~PseudoRenderControl();
};
}
#endif // __pseudorendercontrol_hh