X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fimage.hh;h=ed99e12492b896f776a1f273a4903c6c25dca0c3;hb=9834a687fc5180f0beba99bc15fe5763f5c20317;hp=eedd65127f4660d7c8b9fbdb13a0d68be813c164;hpb=37e56007680a6664967e0e71ac52981654def6a6;p=chaz%2Fopenbox diff --git a/otk/image.hh b/otk/image.hh index eedd6512..ed99e124 100644 --- a/otk/image.hh +++ b/otk/image.hh @@ -11,7 +11,7 @@ extern "C" { #include "color.hh" #include "screeninfo.hh" -#include "src/timer.hh" +#include "timer.hh" namespace otk { @@ -66,7 +66,7 @@ public: }; -class BImageControl : public ob::TimeoutHandler { +class BImageControl { public: struct CachedImage { Pixmap pixmap; @@ -75,7 +75,8 @@ public: unsigned long pixel1, pixel2, texture; }; - BImageControl(const ScreenInfo *scrn, + BImageControl(OBTimerQueueManager *timermanager, + const ScreenInfo *scrn, bool _dither= False, int _cpc = 4, unsigned long cache_timeout = 300000l, unsigned long cmax = 200l); @@ -111,12 +112,12 @@ public: void setDither(bool d) { dither = d; } void setColorsPerChannel(int cpc); - virtual void timeout(void); + static void timeout(BImageControl *t); private: bool dither; const ScreenInfo *screeninfo; - ob::BTimer *timer; + OBTimer *timer; Colormap colormap;