diff options
author | James Brown | 2002-04-21 17:46:42 +0000 |
---|---|---|
committer | James Brown | 2002-04-21 17:46:42 +0000 |
commit | 9809c863730b998c9b1b75f9d7ed2fcd3f989dd0 (patch) | |
tree | f58025b3ec8ccbcabf5306b043ac6eea001e897f /gfx.cpp | |
parent | 0fb625969cacf1545a1905fa7b57026932d188f6 (diff) | |
download | scummvm-rg350-9809c863730b998c9b1b75f9d7ed2fcd3f989dd0.tar.gz scummvm-rg350-9809c863730b998c9b1b75f9d7ed2fcd3f989dd0.tar.bz2 scummvm-rg350-9809c863730b998c9b1b75f9d7ed2fcd3f989dd0.zip |
Add boilerplate license to some files, to satisfy Debian types :)
fmopl.c/fmopl.h are infringing on the GPL at the moment. We either need to
replace these, or get permission to relicense them, before 0.2.0
svn-id: r4036
Diffstat (limited to 'gfx.cpp')
-rw-r--r-- | gfx.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -2640,16 +2640,22 @@ CHECK_HEAP; } + /* Yazoo: This function create the specialPalette used for semi-transparency in SamnMax */ + void Scumm::createSpecialPalette(int16 a, int16 b, int16 c, int16 d, int16 e, int16 colorMin, int16 colorMax) { byte *palPtr; byte *curPtr; byte *searchPtr; + + byte readComp1; + byte readComp2; + byte readComp3; int colorComp1; @@ -2677,11 +2683,16 @@ void Scumm::createSpecialPalette(int16 a, int16 b, int16 c, int16 d, int16 e, in for(i=colorMin;i<colorMax;i++) { + readComp1=*(curPtr++); + readComp2=*(curPtr++); + readComp3=*(curPtr++); + + colorComp1=((readComp1)*c)>>8; colorComp2=((readComp2)*d)>>8; colorComp3=((readComp3)*e)>>8; |