aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/screen.cpp
diff options
context:
space:
mode:
authormd52011-03-10 18:05:59 +0200
committermd52011-03-10 18:05:59 +0200
commit91d2d04f90d020ab9a4eee9b16c0f95dcd6737bd (patch)
treea6ca849d4ba395fe4094ab8850ef9d0cf3410e88 /engines/sci/graphics/screen.cpp
parentff9653ddea2d5eb959085edb916e13908fd41aa8 (diff)
downloadscummvm-rg350-91d2d04f90d020ab9a4eee9b16c0f95dcd6737bd.tar.gz
scummvm-rg350-91d2d04f90d020ab9a4eee9b16c0f95dcd6737bd.tar.bz2
scummvm-rg350-91d2d04f90d020ab9a4eee9b16c0f95dcd6737bd.zip
SCI: Some renaming related to the undithering code
Renamed some variables, functions and comments related to the undithering code, to make them a bit easier to understand
Diffstat (limited to 'engines/sci/graphics/screen.cpp')
-rw-r--r--engines/sci/graphics/screen.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/engines/sci/graphics/screen.cpp b/engines/sci/graphics/screen.cpp
index 757fdc53c7..48f0cc241b 100644
--- a/engines/sci/graphics/screen.cpp
+++ b/engines/sci/graphics/screen.cpp
@@ -583,7 +583,7 @@ void GfxScreen::dither(bool addToFlag) {
}
} else {
if (!addToFlag)
- memset(&_unditherMemorial, 0, sizeof(_unditherMemorial));
+ memset(&_ditheredPicColors, 0, sizeof(_ditheredPicColors));
// Do dithering on visual screen and put decoded but undithered byte onto display-screen
for (y = 0; y < _height; y++) {
for (x = 0; x < _width; x++) {
@@ -591,7 +591,7 @@ void GfxScreen::dither(bool addToFlag) {
if (color & 0xF0) {
color ^= color << 4;
// remember dither combination for cel-undithering
- _unditherMemorial[color]++;
+ _ditheredPicColors[color]++;
// if decoded color wants do dither with black on left side, we turn it around
// otherwise the normal ega color would get used for display
if (color & 0xF0) {
@@ -618,18 +618,17 @@ void GfxScreen::dither(bool addToFlag) {
}
}
-// Force a color combination into memorial
-void GfxScreen::ditherForceMemorial(byte color) {
- _unditherMemorial[color] = 256;
+void GfxScreen::ditherForceDitheredColor(byte color) {
+ _ditheredPicColors[color] = 256;
}
void GfxScreen::debugUnditherSetState(bool flag) {
_unditherState = flag;
}
-int16 *GfxScreen::unditherGetMemorial() {
+int16 *GfxScreen::unditherGetDitheredBgColors() {
if (_unditherState)
- return (int16 *)&_unditherMemorial;
+ return (int16 *)&_ditheredPicColors;
else
return NULL;
}