[Scummvm-cvs-logs] SF.net SVN: scummvm:[55274] scummvm/trunk/engines/gob
drmccoy at users.sourceforge.net
drmccoy at users.sourceforge.net
Sun Jan 16 23:30:19 CET 2011
Revision: 55274
http://scummvm.svn.sourceforge.net/scummvm/?rev=55274&view=rev
Author: drmccoy
Date: 2011-01-16 22:30:19 +0000 (Sun, 16 Jan 2011)
Log Message:
-----------
GOB: Remove unused old shade functions
Modified Paths:
--------------
scummvm/trunk/engines/gob/video.h
scummvm/trunk/engines/gob/video_v6.cpp
Modified: scummvm/trunk/engines/gob/video.h
===================================================================
--- scummvm/trunk/engines/gob/video.h 2011-01-16 22:29:49 UTC (rev 55273)
+++ scummvm/trunk/engines/gob/video.h 2011-01-16 22:30:19 UTC (rev 55274)
@@ -188,9 +188,6 @@
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);
Modified: scummvm/trunk/engines/gob/video_v6.cpp
===================================================================
--- scummvm/trunk/engines/gob/video_v6.cpp 2011-01-16 22:29:49 UTC (rev 55273)
+++ scummvm/trunk/engines/gob/video_v6.cpp 2011-01-16 22:30:19 UTC (rev 55274)
@@ -65,86 +65,6 @@
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;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list