mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
- fix transparency (patch by FlatTV) -> http://www.dbox2world.net/board293-coolstream-hd1/board314-coolstream-development/p129521-transparente-senderlogos/#post129521
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1417 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -1632,8 +1632,14 @@ void * CFrameBuffer::convertRGB2FB(unsigned char *rgbbuff, unsigned long x, unsi
|
||||
return NULL;
|
||||
}
|
||||
|
||||
for(i = 0; i < count ; i++)
|
||||
for(i = 0; i < count ; i++) {
|
||||
int transp = 0;
|
||||
|
||||
if(rgbbuff[i*3] || rgbbuff[i*3+1] || rgbbuff[i*3+2])
|
||||
transp = 0xFF;
|
||||
|
||||
fbbuff[i] = (transp << 24) | ((rgbbuff[i*3] << 16) & 0xFF0000) | ((rgbbuff[i*3+1] << 8) & 0xFF00) | (rgbbuff[i*3+2] & 0xFF);
|
||||
}
|
||||
|
||||
return (void *) fbbuff;
|
||||
}
|
||||
|
Reference in New Issue
Block a user