aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Hesse2011-01-16 22:30:19 +0000
committerSven Hesse2011-01-16 22:30:19 +0000
commit8a1e9c8256fe8021e32ceea5e76d095f50a4d490 (patch)
treea734b9a1c7c955a3c935282bb7cc77eb3ac874f1
parente6d04b8ad61200716e376533bb075f8891739c20 (diff)
downloadscummvm-rg350-8a1e9c8256fe8021e32ceea5e76d095f50a4d490.tar.gz
scummvm-rg350-8a1e9c8256fe8021e32ceea5e76d095f50a4d490.tar.bz2
scummvm-rg350-8a1e9c8256fe8021e32ceea5e76d095f50a4d490.zip
GOB: Remove unused old shade functions
svn-id: r55274
-rw-r--r--engines/gob/video.h3
-rw-r--r--engines/gob/video_v6.cpp80
2 files changed, 0 insertions, 83 deletions
diff --git a/engines/gob/video.h b/engines/gob/video.h
index c283a0824e..2f3e074258 100644
--- a/engines/gob/video.h
+++ b/engines/gob/video.h
@@ -188,9 +188,6 @@ public:
virtual ~Video_v6() {}
private:
- void shadeRect(Surface &dest,
- int16 left, int16 top, int16 right, int16 bottom, byte color, byte strength);
-
void drawPacked(const byte *sprBuf, int16 x, int16 y, Surface &surfDesc);
void drawYUVData(const byte *srcData, Surface &destDesc,
int16 width, int16 height, int16 x, int16 y);
diff --git a/engines/gob/video_v6.cpp b/engines/gob/video_v6.cpp
index e4feb6501f..dd71e3ba51 100644
--- a/engines/gob/video_v6.cpp
+++ b/engines/gob/video_v6.cpp
@@ -65,86 +65,6 @@ char Video_v6::spriteUncompressor(byte *sprBuf, int16 srcWidth, int16 srcHeight,
return 1;
}
-/*
-void Video_v6::fillRect(Surface &dest,
- int16 left, int16 top, int16 right, int16 bottom, int16 color) {
-
- if (!(color & 0xFF00)) {
- Video::fillRect(dest, left, top, right, bottom, color);
- return;
- }
-
- if (!(color & 0x0100)) {
- Video::fillRect(dest, left, top, right, bottom, color);
- return;
- }
-
- if (_doRangeClamp) {
- if (left > right)
- SWAP(left, right);
- if (top > bottom)
- SWAP(top, bottom);
-
- if ((left >= dest.getWidth()) || (right < 0) ||
- (top >= dest.getHeight()) || (bottom < 0))
- return;
-
- left = CLIP(left, (int16)0, (int16)(dest.getWidth() - 1));
- top = CLIP(top, (int16)0, (int16)(dest.getHeight() - 1));
- right = CLIP(right, (int16)0, (int16)(dest.getWidth() - 1));
- bottom = CLIP(bottom, (int16)0, (int16)(dest.getHeight() - 1));
- }
-
- byte strength = 16 - (((uint16) color) >> 12);
- shadeRect(dest, left, top, right, bottom, color, strength);
-}
-*/
-
-void Video_v6::shadeRect(Surface &dest,
- int16 left, int16 top, int16 right, int16 bottom, byte color, byte strength) {
-
- warning("TODO: Video_v6::shadeRect()");
-
- /*
- int width = right - left + 1;
- int height = bottom - top + 1;
- int dWidth = dest.getWidth();
- byte *vidMem = dest.getVidMem() + dWidth * top + left;
-
- byte sY, sU, sV;
- //_palLUT->getEntry(color, sY, sU, sV);
-
- int shadeY = sY * (16 - strength);
- int shadeU = sU * (16 - strength);
- int shadeV = sV * (16 - strength);
-
- Graphics::SierraLight *dither =
- new Graphics::SierraLight(width, _palLUT);
-
- for (int i = 0; i < height; i++) {
- byte *d = vidMem;
-
- for (int j = 0; j < width; j++) {
- byte dY, dU, dV;
- byte dC = *d;
-
- _palLUT->getEntry(dC, dY, dU, dV);
-
- dY = CLIP<int>((shadeY + strength * dY) >> 4, 0, 255);
- dU = CLIP<int>((shadeU + strength * dU) >> 4, 0, 255);
- dV = CLIP<int>((shadeV + strength * dV) >> 4, 0, 255);
-
- *d++ = dither->dither(dY, dU, dV, j);
- }
-
- dither->nextLine();
- vidMem += dWidth;
- }
-
- delete dither;
- */
-}
-
void Video_v6::drawPacked(const byte *sprBuf, int16 x, int16 y, Surface &surfDesc) {
const byte *data = sprBuf + 2;