X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Ftruerendercontrol.hh;h=e4975aeb002250478753faf1fbcbae5eb93b02ca;hb=3fe7bded58fb82fd2c1c2a5f9ad2e8f453fa0609;hp=bd6d80af3946331840ef280158b11bcd8d4c4561;hpb=9b6e5f9cf49df78be25720f9c4b33a733b856c9b;p=chaz%2Fopenbox diff --git a/otk/truerendercontrol.hh b/otk/truerendercontrol.hh index bd6d80af..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 @@ -25,7 +43,9 @@ public: TrueRenderControl(int screen); virtual ~TrueRenderControl(); - virtual void drawBackground(Surface *sf, const RenderTexture &texture) const; + virtual void drawBackground(Surface& sf, const RenderTexture &texture) const; + virtual void drawGradientBackground(Surface &sf, + const RenderTexture &texture) const; }; }