X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Ftruerendercontrol.hh;fp=otk%2Ftruerendercontrol.hh;h=e4975aeb002250478753faf1fbcbae5eb93b02ca;hb=31c20197e585bee0d48a7643bf73a0b358ad6297;hp=b85a7cc2e83f35cb529b7a720f5c36e1ba5afda1;hpb=e6c12f8fd98513f455c7742b63fef199e9c624ac;p=chaz%2Fopenbox diff --git a/otk/truerendercontrol.hh b/otk/truerendercontrol.hh index b85a7cc2..e4975aeb 100644 --- a/otk/truerendercontrol.hh +++ b/otk/truerendercontrol.hh @@ -4,10 +4,28 @@ #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 @@ -26,6 +44,8 @@ public: virtual ~TrueRenderControl(); virtual void drawBackground(Surface& sf, const RenderTexture &texture) const; + virtual void drawGradientBackground(Surface &sf, + const RenderTexture &texture) const; }; }