X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Ftruerendercontrol.hh;h=36dbe2441165b8946a79cb3a3e459b7cd0b8535f;hb=bcca5bb967f792e6dd9a1031e4bdcbef13be754d;hp=e4975aeb002250478753faf1fbcbae5eb93b02ca;hpb=31c20197e585bee0d48a7643bf73a0b358ad6297;p=chaz%2Fopenbox diff --git a/otk/truerendercontrol.hh b/otk/truerendercontrol.hh index e4975aeb..36dbe244 100644 --- a/otk/truerendercontrol.hh +++ b/otk/truerendercontrol.hh @@ -4,28 +4,10 @@ #include "rendercontrol.hh" -extern "C" { - -#ifdef HAVE_STDINT_H -# include -#else -# ifdef HAVE_SYS_TYPES_H -# include -# endif -#endif - -} - #include namespace otk { -#ifdef HAVE_STDINT_H -typedef uint32_t pixel32; -#else -typedef u_int32_t pixel32; -#endif - class TrueRenderControl : public RenderControl { private: // the number of bits to shift a color value (from 0-255) to the right, to @@ -39,13 +21,13 @@ private: int _green_offset; int _blue_offset; + virtual void reduceDepth(Surface &sf, XImage *im) const; + public: TrueRenderControl(int screen); virtual ~TrueRenderControl(); - virtual void drawBackground(Surface& sf, const RenderTexture &texture) const; - virtual void drawGradientBackground(Surface &sf, - const RenderTexture &texture) const; + virtual void allocateColor(XColor *color) const; }; }