aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2014-06-17 15:06:11 +0300
committerEugene Sandulenko2014-06-17 15:06:11 +0300
commit7c444319cbb14b95a5fe2c7cf2c5471ab065c961 (patch)
treed3fbe9a96b0c28aa92ddea157426309d8a2c2cee /engines
parente6af6328c7dab0d84ea5fe9f7317399f47a4381e (diff)
downloadscummvm-rg350-7c444319cbb14b95a5fe2c7cf2c5471ab065c961.tar.gz
scummvm-rg350-7c444319cbb14b95a5fe2c7cf2c5471ab065c961.tar.bz2
scummvm-rg350-7c444319cbb14b95a5fe2c7cf2c5471ab065c961.zip
FULLPIPE: cleanup
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/gfx.cpp52
-rw-r--r--engines/fullpipe/gfx.h3
2 files changed, 0 insertions, 55 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp
index dd2a026a3c..718a3a32c5 100644
--- a/engines/fullpipe/gfx.cpp
+++ b/engines/fullpipe/gfx.cpp
@@ -1155,58 +1155,6 @@ Bitmap *Bitmap::reverseImage() {
return res;
}
-Bitmap *Bitmap::reverseImageRB() {
- uint16 *newpixels = (uint16 *)calloc(((_dataSize + 15) & 0xfffffff0) + sizeof(Bitmap), 1);
- uint16 *srcPtr = (uint16 *)_pixels;
-
- int idx = 0;
- while (srcPtr[idx] != 0x100) {
- uint16 *srcPtr2 = &srcPtr[idx];
-
- int prevIdx = idx;
- int i = idx;
-
- while (*srcPtr2) {
- ++srcPtr2;
- ++idx;
- }
-
- int idx2 = idx;
-
- newpixels[idx] = srcPtr[idx];
-
- while (i != idx) {
- int fillLen = 2 - ((srcPtr[prevIdx] & 0xff) != 0 ? 1 : 0);
- idx2 -= fillLen;
- memcpy(&newpixels[idx2], &srcPtr[prevIdx], 2 * fillLen);
- prevIdx = fillLen + i;
- i += fillLen;
- }
- ++idx;
- }
- newpixels[idx] = 256;
-
- int oldBmp = ((_dataSize + 15) >> 1) & 0x7FFFFFF8;
- memcpy(&newpixels[oldBmp], &srcPtr[oldBmp], sizeof(Bitmap));
-
- Bitmap *res = new Bitmap(this);
- res->_pixels = (byte *)newpixels;
-
- return res;
-}
-
-Bitmap *Bitmap::reverseImageCB() {
- warning("STUB: Bitmap::reverseImageCB()");
-
- return this;
-}
-
-Bitmap *Bitmap::reverseImageCB05() {
- warning("STUB: Bitmap::reverseImageCB05()");
-
- return this;
-}
-
Bitmap *Bitmap::flipVertical() {
warning("STUB: Bitmap::flipVertical()");
diff --git a/engines/fullpipe/gfx.h b/engines/fullpipe/gfx.h
index 3606a1aa00..576ff7ee39 100644
--- a/engines/fullpipe/gfx.h
+++ b/engines/fullpipe/gfx.h
@@ -57,9 +57,6 @@ struct Bitmap {
void copier(uint32 *dest, byte *src, int len, int32 *palette, bool cb05_format);
Bitmap *reverseImage();
- Bitmap *reverseImageRB();
- Bitmap *reverseImageCB();
- Bitmap *reverseImageCB05();
Bitmap *flipVertical();
void drawShaded(int type, int x, int y, byte *palette);