diff options
author | Jonathan Gray | 2002-10-19 22:35:22 +0000 |
---|---|---|
committer | Jonathan Gray | 2002-10-19 22:35:22 +0000 |
commit | dd7cfdb0de600f3079dcca28eb1f748b8ac03f9b (patch) | |
tree | 63f62e2986eda18458ddf4ad9321d47478b22398 /scumm/gfx.cpp | |
parent | 7198181b093732592d678fc95c64698fe0470715 (diff) | |
download | scummvm-rg350-dd7cfdb0de600f3079dcca28eb1f748b8ac03f9b.tar.gz scummvm-rg350-dd7cfdb0de600f3079dcca28eb1f748b8ac03f9b.tar.bz2 scummvm-rg350-dd7cfdb0de600f3079dcca28eb1f748b8ac03f9b.zip |
patch #625603 film noir mode bugfix
svn-id: r5190
Diffstat (limited to 'scumm/gfx.cpp')
-rw-r--r-- | scumm/gfx.cpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index f6232d28b1..fbeca666bf 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -2833,41 +2833,6 @@ void Scumm::darkenPalette(int startColor, int endColor, int redScale, int greenS } } -void Scumm::desaturatePalette() -{ - // FIXME: Should this be made to take a range of colors instead? - - byte *cur; - int i; - - cur = _currentPalette; - - for (i = 0; i <= 255; i++) - { - int max, min; - int brightness; - - // An algorithm that is good enough for The GIMP should be - // good enough for us... - - max = (cur[0] > cur[1]) ? cur[0] : cur[1]; - if (cur[2] > max) - max = cur[2]; - - min = (cur[0] < cur[1]) ? cur[0] : cur[1]; - if (cur[2] < min) - min = cur[2]; - - brightness = (min + max) / 2; - - *cur++ = brightness; - *cur++ = brightness; - *cur++ = brightness; - } - - setDirtyColors(0, 255); -} - void Scumm::grabCursor(int x, int y, int w, int h) { VirtScreen *vs = findVirtScreen(y); |