aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/vgagrafx.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2012-03-04 01:11:50 +0200
committerFilippos Karapetis2012-03-04 01:11:50 +0200
commitd41d7e5f3688b3d83323d9240fe744ba8d339307 (patch)
tree629ad183ecde57f0075a1d4cb9517be273abd147 /engines/dreamweb/vgagrafx.cpp
parent2ade3b12be7135111815f066e18b16b0a4984c3b (diff)
downloadscummvm-rg350-d41d7e5f3688b3d83323d9240fe744ba8d339307.tar.gz
scummvm-rg350-d41d7e5f3688b3d83323d9240fe744ba8d339307.tar.bz2
scummvm-rg350-d41d7e5f3688b3d83323d9240fe744ba8d339307.zip
DREAMWEB: Clean up the palette brightness code
Diffstat (limited to 'engines/dreamweb/vgagrafx.cpp')
-rw-r--r--engines/dreamweb/vgagrafx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/dreamweb/vgagrafx.cpp b/engines/dreamweb/vgagrafx.cpp
index be7d210999..a66f156a1d 100644
--- a/engines/dreamweb/vgagrafx.cpp
+++ b/engines/dreamweb/vgagrafx.cpp
@@ -417,7 +417,7 @@ void DreamWebEngine::loadPalFromIFF() {
uint8 *dst = _mainPal;
for (size_t i = 0; i < 256*3; ++i) {
uint8 c = src[i] / 4;
- if (_brightness == 1) {
+ if (_brightPalette) {
if (c) {
c = c + c / 2 + c / 4;
if (c > 63)