Moviebrowser: disabled 'pseudo' transparency for display screenshot

- Global setting for picture / icon transparency can be made
 in framebuffer constuctor
- Default is old standard (transparency when Black Content)
- Individual transparency with CFrameBuffer::SetTransparent()

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2155 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: 5fee27085d
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2012-03-19 (Mon, 19 Mar 2012)

Origin message was:
------------------
* Moviebrowser: disabled 'pseudo' transparency for display screenshot

- Global setting for picture / icon transparency can be made
 in framebuffer constuctor
- Default is old standard (transparency when Black Content)
- Individual transparency with CFrameBuffer::SetTransparent()

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2155 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
Michael Liebmann
2012-03-19 21:40:03 +00:00
parent fb63920b0f
commit 367fbc656e
5 changed files with 46 additions and 30 deletions

View File

@@ -114,6 +114,7 @@ class CFrameBuffer
std::map<std::string, rawIcon> icon_cache;
int cache_size;
void * int_convertRGB2FB(unsigned char *rgbbuff, unsigned long x, unsigned long y, int transp, bool alpha);
int m_transparent_default, m_transparent;
public:
fb_pixel_t realcolor[256];
@@ -222,7 +223,16 @@ class CFrameBuffer
void blit2FB(void *fbbuff, uint32_t width, uint32_t height, uint32_t xoff, uint32_t yoff, uint32_t xp = 0, uint32_t yp = 0, bool transp = false);
bool blitToPrimary(unsigned int * data, int dx, int dy, int sw, int sh);
void paintMuteIcon(bool paint, int ax, int ay, int dx, int dy, bool paintFrame=true);
enum
{
TM_EMPTY = 0,
TM_NONE = 1,
TM_BLACK = 2,
TM_INI = 3
};
void SetTransparent(int t){ m_transparent = t; }
void SetTransparentDefault(){ m_transparent = m_transparent_default; }
};
#endif