From 7c444319cbb14b95a5fe2c7cf2c5471ab065c961 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 17 Jun 2014 15:06:11 +0300 Subject: FULLPIPE: cleanup --- engines/fullpipe/gfx.cpp | 52 ------------------------------------------------ engines/fullpipe/gfx.h | 3 --- 2 files changed, 55 deletions(-) (limited to 'engines') 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); -- cgit v1.2.3