From 1d3cd38e88ae97dd6906f9818d52b9ef07bf057d Mon Sep 17 00:00:00 2001 From: lordjaxom Date: Wed, 16 Jun 2004 18:50:57 +0000 Subject: - fixed disappearing Scrolltext when Message was displayed - fixed display-items "MenuScrollUp" and "MenuScrollDown" which didn't display any other items than "Symbol" - fixed the above for all replay- and channel-symbols (for all display-items that can be symbols there must be path, altpath or both to tell the plugin if that item is to be drawn if the symbol is on, off or in both cases) - fixed various memory leaks and missing destructions (valgrind rox) - fixed the image loaders to respect the alpha value and palette properly (this hopefully also fixes the phenomenon that images "get lost" after some time) - added display-item "Scrollbar" - SKINS and SKINS.de are now generated during the make --- bitmap.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'bitmap.h') diff --git a/bitmap.h b/bitmap.h index ac0f0e4..44a3e1b 100644 --- a/bitmap.h +++ b/bitmap.h @@ -1,5 +1,5 @@ /* - * $Id: bitmap.h,v 1.10 2004/06/12 18:00:05 lordjaxom Exp $ + * $Id: bitmap.h,v 1.11 2004/06/16 18:46:50 lordjaxom Exp $ */ #ifndef VDR_TEXT2SKIN_BITMAP_H @@ -15,11 +15,12 @@ typedef cText2SkinCache cImageCache; class cText2SkinBitmap { private: static cImageCache mCache; + static bool mFirstTime; - vector mBitmaps; - int mCurrent; - time_t mDelay; - time_t mLastGet; + vector mBitmaps; + int mCurrent; + time_t mDelay; + time_t mLastGet; // disallow direct construction cText2SkinBitmap(void); @@ -32,6 +33,7 @@ public: cBitmap &Get(int &UpdateIn); void SetColor(int Index, tColor Color) { mBitmaps[mCurrent]->SetColor(Index, Color); } + void SetAlpha(int Alpha); bool LoadXpm(const char *Filename, int Alpha); #ifdef HAVE_IMLIB2 -- cgit v1.2.3