aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorEugene Sandulenko2005-02-20 01:37:47 +0000
committerEugene Sandulenko2005-02-20 01:37:47 +0000
commitb4780deac60054b515d28a124710e3da39301544 (patch)
treee50b9b9028da8afa3edf60c4fc5b038f002e6e76 /scumm
parent45f59cc610c44335c2bd7cce7d7b7d31f90a1715 (diff)
downloadscummvm-rg350-b4780deac60054b515d28a124710e3da39301544.tar.gz
scummvm-rg350-b4780deac60054b515d28a124710e3da39301544.tar.bz2
scummvm-rg350-b4780deac60054b515d28a124710e3da39301544.zip
(more) correct v2 ditherers. Still suffers from some differences and
text colors are not always match. svn-id: r16818
Diffstat (limited to 'scumm')
-rw-r--r--scumm/actor.cpp2
-rw-r--r--scumm/gfx.cpp4
2 files changed, 5 insertions, 1 deletions
diff --git a/scumm/actor.cpp b/scumm/actor.cpp
index 95b43a5d31..987cf752e5 100644
--- a/scumm/actor.cpp
+++ b/scumm/actor.cpp
@@ -1402,7 +1402,7 @@ void Actor::setActorCostume(int c) {
palette[i] = i;
// Make stuff more visible on CGA. Based on disassembly
- if (_vm->_renderMode == Common::kRenderCGA) {
+ if (_vm->_renderMode == Common::kRenderCGA && _vm->_version > 2) {
palette[6] = 5;
palette[7] = 15;
}
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index 3709f2cbe5..9a2479d18a 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -555,6 +555,10 @@ void Gdi::ditherCGA(byte *dst, int dstPitch, int x, int y, int width, int height
ptr = dst + y1 * dstPitch;
idx1 = (y + y1) % 2;
+
+ if (_vm->_version == 2)
+ idx1 = 0;
+
for (int x1 = 0; x1 < width; x1++) {
idx2 = (x + x1) % 2;
*ptr++ = cgaDither[idx1][idx2][*ptr & 0xF];