X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FImage.h;h=e342128b00878d033b8e551cf85728e47637493b;hb=ae093dba2fb97124bb4af3eaf4070b46f07dfd74;hp=4be1d7bfcd3288920d99ba1607cd55cff6473180;hpb=e17c54e3f80458c0c85133e877371a55f460e3e7;p=chaz%2Fopenbox diff --git a/src/Image.h b/src/Image.h index 4be1d7bf..e342128b 100644 --- a/src/Image.h +++ b/src/Image.h @@ -26,8 +26,8 @@ #include #include -#include "LinkedList.h" #include "Timer.h" +#include class ScreenInfo; class BImage; @@ -114,7 +114,7 @@ public: class BImage { private: - BImageControl *control; + BImageControl &control; #ifdef INTERLACE Bool interlaced; @@ -148,7 +148,7 @@ protected: public: - BImage(BImageControl *, unsigned int, unsigned int); + BImage(BImageControl &, unsigned int, unsigned int); ~BImage(void); Pixmap render(BTexture *); @@ -160,8 +160,8 @@ public: class BImageControl : public TimeoutHandler { private: Bool dither; - BaseDisplay *basedisplay; - ScreenInfo *screeninfo; + BaseDisplay &basedisplay; + ScreenInfo &screeninfo; #ifdef TIMEDCACHE BTimer *timer; #endif // TIMEDCACHE @@ -186,7 +186,8 @@ private: unsigned long pixel1, pixel2, texture; } Cache; - LinkedList *cache; + typedef std::list CacheList; + CacheList cache; protected: @@ -195,19 +196,19 @@ protected: public: - BImageControl(BaseDisplay *, ScreenInfo *, Bool = False, int = 4, + BImageControl(BaseDisplay &, ScreenInfo &, Bool = False, int = 4, unsigned long = 300000l, unsigned long = 200l); virtual ~BImageControl(void); - inline BaseDisplay *getBaseDisplay(void) { return basedisplay; } + inline BaseDisplay &getBaseDisplay(void) { return basedisplay; } inline const Bool &doDither(void) { return dither; } - inline ScreenInfo *getScreenInfo(void) { return screeninfo; } + inline ScreenInfo &getScreenInfo(void) { return screeninfo; } inline const Window &getDrawable(void) const { return window; } - inline Visual *getVisual(void) { return screeninfo->getVisual(); } + inline Visual *getVisual(void) const { return screeninfo.getVisual(); } inline const int &getBitsPerPixel(void) const { return bits_per_pixel; } inline const int &getDepth(void) const { return screen_depth; }