all repos — fluxbox @ 39a51f25721678128d96dfe05e0a1ddea6780912

custom fork of the fluxbox windowmanager

cleaning, removed compiletime option for interlaced
fluxgen fluxgen
commit

39a51f25721678128d96dfe05e0a1ddea6780912

parent

1d70a93ba6c85f6bbdd91a5a7c641490cb6942e9

1 files changed, 13 insertions(+), 23 deletions(-)

jump to
M src/Image.hhsrc/Image.hh

@@ -22,19 +22,16 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Image.hh,v 1.15 2002/10/13 21:57:07 fluxgen Exp $ +// $Id: Image.hh,v 1.16 2002/11/24 20:22:38 fluxgen Exp $ #ifndef IMAGE_HH #define IMAGE_HH -#include "Timer.hh" + #include "BaseDisplay.hh" #include "Color.hh" #include "Texture.hh" - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif // HAVE_CONFIG_H +#include "Timer.hh" #include <X11/Xlib.h> #include <X11/Xutil.h>

@@ -47,7 +44,7 @@ Renders to pixmap

*/ class BImage { public: - BImage(BImageControl *ic, unsigned int, unsigned int); + BImage(BImageControl *ic, unsigned int width, unsigned int height); ~BImage(); /// render to pixmap Pixmap render(const FbTk::Texture *src_texture);

@@ -86,10 +83,7 @@ //@}

private: BImageControl *control; - -#ifdef INTERLACE bool interlaced; -#endif // INTERLACE XColor *colors; // color table

@@ -105,14 +99,12 @@ Holds screen info and color tables

*/ class BImageControl : public TimeoutHandler { public: - BImageControl(BaseDisplay *disp, ScreenInfo *screen, bool = False, int = 4, - unsigned long = 300000l, unsigned long = 200l); + BImageControl(const ScreenInfo *screen, bool dither = false, int colors_per_channel = 4, + unsigned long cache_timeout = 300000l, unsigned long cache_max = 200l); virtual ~BImageControl(); - inline BaseDisplay *baseDisplay() { return basedisplay; } - - inline bool doDither() { return dither; } - inline const Colormap &colormap() const { return m_colormap; } + inline bool doDither() const { return m_dither; } + inline Colormap colormap() const { return m_colormap; } inline const ScreenInfo *getScreenInfo() const { return screeninfo; } inline Window drawable() const { return window; }

@@ -142,7 +134,7 @@ int *, int *, int *, int *, int *, int *);

void getXColorTable(XColor **, int *); void getGradientBuffers(unsigned int, unsigned int, unsigned int **, unsigned int **); - void setDither(bool d) { dither = d; } + void setDither(bool d) { m_dither = d; } void setColorsPerChannel(int cpc); virtual void timeout();

@@ -156,12 +148,10 @@ Pixmap searchCache(unsigned int width, unsigned int height, unsigned long texture_type,

const FbTk::Color &color, const FbTk::Color &color_to); private: - bool dither; - BaseDisplay *basedisplay; - ScreenInfo *screeninfo; -#ifdef TIMEDCACHE - BTimer timer; -#endif // TIMEDCACHE + bool m_dither; + const ScreenInfo *screeninfo; + + BTimer m_timer; Colormap m_colormap;