mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
Windows fade emulation. Some main windows at the moment only. New drivers needed.
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@644 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -196,6 +196,7 @@ CFrameBuffer* CFrameBuffer::getInstance()
|
||||
return frameBuffer;
|
||||
}
|
||||
|
||||
#ifdef USE_NEVIS_GXA
|
||||
void CFrameBuffer::setupGXA(void)
|
||||
{
|
||||
// We (re)store the GXA regs here in case DFB override them and was not
|
||||
@@ -207,6 +208,7 @@ void CFrameBuffer::setupGXA(void)
|
||||
_write_gxa(gxa_base, GXA_CFG_REG, 0x100 | (1 << 12) | (1 << 29));
|
||||
_write_gxa(gxa_base, GXA_CFG2_REG, 0x1FF);
|
||||
}
|
||||
#endif
|
||||
|
||||
void CFrameBuffer::init(const char * const fbDevice)
|
||||
{
|
||||
@@ -507,12 +509,19 @@ void CFrameBuffer::setTransparency( int /*tr*/ )
|
||||
{
|
||||
}
|
||||
|
||||
void CFrameBuffer::setBlendLevel(int /*blev1*/, int /*blev2*/)
|
||||
#define FBIO_CHANGEOPACITY 0x4624
|
||||
void CFrameBuffer::setBlendLevel(int blev1, int /*blev2*/)
|
||||
{
|
||||
#if 0
|
||||
unsigned short value = blev1;
|
||||
#if 1
|
||||
//printf("CFrameBuffer::setBlendLevel %d\n", blev1);
|
||||
unsigned short value = 0xFFFF;
|
||||
if((blev1 >= 0) && (blev1 <= 100))
|
||||
value = convertSetupAlpha2Alpha(blev1);
|
||||
|
||||
if (ioctl(fd, FBIO_CHANGEOPACITY, &value) < 0)
|
||||
printf("FBIO_CHANGEOPACITY failed.\n");
|
||||
if(blev1 == 100) // sucks
|
||||
usleep(20000);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user