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


Origin commit data
------------------
Branch: ni/coolstream
Commit: e9e7977206
Author: gixxpunk <thomas.harfmann@gmail.com>
Date: 2011-04-29 (Fri, 29 Apr 2011)

Origin message was:
------------------
- 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 was generated by Migit
This commit is contained in:
gixxpunk
2011-04-29 20:04:17 +00:00
parent a67e661318
commit 6a11aa5405

View File

@@ -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;
}