From 8a1e9c8256fe8021e32ceea5e76d095f50a4d490 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Sun, 16 Jan 2011 22:30:19 +0000 Subject: GOB: Remove unused old shade functions svn-id: r55274 --- engines/gob/video.h | 3 -- engines/gob/video_v6.cpp | 80 ------------------------------------------------ 2 files changed, 83 deletions(-) (limited to 'engines') 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((shadeY + strength * dY) >> 4, 0, 255); - dU = CLIP((shadeU + strength * dU) >> 4, 0, 255); - dV = CLIP((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; -- cgit v1.2.3