aboutsummaryrefslogtreecommitdiff
path: root/saga/gfx.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2005-10-05 02:00:17 +0000
committerEugene Sandulenko2005-10-05 02:00:17 +0000
commitb76d1b36ae31a5ff5d90f36ec64f60b8eeed4155 (patch)
tree8bcfc6cbb63406ee8f6be7fb59092006f1a60258 /saga/gfx.cpp
parent8912fcb8055b442607ef679548427db22ce8c649 (diff)
downloadscummvm-rg350-b76d1b36ae31a5ff5d90f36ec64f60b8eeed4155.tar.gz
scummvm-rg350-b76d1b36ae31a5ff5d90f36ec64f60b8eeed4155.tar.bz2
scummvm-rg350-b76d1b36ae31a5ff5d90f36ec64f60b8eeed4155.zip
Fix to fixed palette range.
svn-id: r18937
Diffstat (limited to 'saga/gfx.cpp')
-rw-r--r--saga/gfx.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/saga/gfx.cpp b/saga/gfx.cpp
index cdad674972..7895632e5e 100644
--- a/saga/gfx.cpp
+++ b/saga/gfx.cpp
@@ -203,8 +203,8 @@ void Gfx::setPalette(const PalEntry *pal, bool full) {
from = 0;
numcolors = PAL_ENTRIES;
} else {
- from = 0;
- numcolors = 248;
+ from = 1;
+ numcolors = 247;
}
for (i = 0, ppal = &_currentPal[from * 4]; i < numcolors; i++, ppal += 4) {
@@ -273,8 +273,8 @@ void Gfx::palToBlack(PalEntry *srcPal, double percent) {
from = 0;
numcolors = PAL_ENTRIES;
} else {
- from = 0;
- numcolors = 248;
+ from = 1;
+ numcolors = 247;
}
if (percent > 1.0) {
@@ -338,8 +338,8 @@ void Gfx::blackToPal(PalEntry *srcPal, double percent) {
from = 0;
numcolors = PAL_ENTRIES;
} else {
- from = 0;
- numcolors = 248;
+ from = 1;
+ numcolors = 247;
}
if (percent > 1.0) {