diff options
author | Travis Howell | 2006-10-21 01:51:59 +0000 |
---|---|---|
committer | Travis Howell | 2006-10-21 01:51:59 +0000 |
commit | 399f8381a970133a6a6247d49eaf57b7a811d902 (patch) | |
tree | 8617f9222657de3cbb0fa90aa05e46ae3ef7ba34 /engines/agos/gfx.cpp | |
parent | 4e859bb26ea6b75f954f3b5b155eea74104dbfa1 (diff) | |
download | scummvm-rg350-399f8381a970133a6a6247d49eaf57b7a811d902.tar.gz scummvm-rg350-399f8381a970133a6a6247d49eaf57b7a811d902.tar.bz2 scummvm-rg350-399f8381a970133a6a6247d49eaf57b7a811d902.zip |
Cleanup
svn-id: r24397
Diffstat (limited to 'engines/agos/gfx.cpp')
-rw-r--r-- | engines/agos/gfx.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/engines/agos/gfx.cpp b/engines/agos/gfx.cpp index e3f81b4038..cd3b9d09b6 100644 --- a/engines/agos/gfx.cpp +++ b/engines/agos/gfx.cpp @@ -740,4 +740,24 @@ void AGOSEngine::scaleClip(int16 h, int16 w, int16 y, int16 x, int16 scrollY) { } } +void AGOSEngine::paletteFadeOut(byte *palPtr, uint num, uint size) { + byte *p = palPtr; + + do { + if (p[0] >= size) + p[0] -= size; + else + p[0] = 0; + if (p[1] >= size) + p[1] -= size; + else + p[1] = 0; + if (p[2] >= size) + p[2] -= size; + else + p[2] = 0; + p += 4; + } while (--num); +} + } // End of namespace AGOS |