aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sword1/screen.cpp39
-rw-r--r--engines/sword1/screen.h4
2 files changed, 0 insertions, 43 deletions
diff --git a/engines/sword1/screen.cpp b/engines/sword1/screen.cpp
index 2a7bd60eb7..ac35925cad 100644
--- a/engines/sword1/screen.cpp
+++ b/engines/sword1/screen.cpp
@@ -37,10 +37,6 @@
#include "sword1/swordres.h"
#include "sword1/sword1.h"
-#ifdef BACKEND_8BIT
-#include "sword1/animation.h"
-#endif
-
namespace Sword1 {
#define SCROLL_FRACTION 16
@@ -1379,39 +1375,4 @@ void Screen::drawLine(uint16 x1, uint16 y1, uint16 x2, uint16 y2) {
}
}
-#ifdef BACKEND_8BIT
-void Screen::plotYUV(byte *lut, int width, int height, byte *const *dat) {
-
- byte * buf = (uint8*)malloc(width * height);
-
- int x, y;
-
- int ypos = 0;
- int cpos = 0;
- int linepos = 0;
-
- for (y = 0; y < height; y += 2) {
- for (x = 0; x < width; x += 2) {
- int i = ((((dat[2][cpos] + ROUNDADD) >> SHIFT) * (BITDEPTH+1)) + ((dat[1][cpos] + ROUNDADD)>>SHIFT)) * (BITDEPTH+1);
- cpos++;
-
- buf[linepos ] = lut[i + ((dat[0][ ypos ] + ROUNDADD) >> SHIFT)];
- buf[width + linepos++] = lut[i + ((dat[0][width + ypos++] + ROUNDADD) >> SHIFT)];
- buf[linepos ] = lut[i + ((dat[0][ ypos ] + ROUNDADD) >> SHIFT)];
- buf[width + linepos++] = lut[i + ((dat[0][width + ypos++] + ROUNDADD) >> SHIFT)];
- }
- linepos += (2 * width - width);
- ypos += width;
- }
-
- _system->copyRectToScreen(buf, width, (640-width)/2, (480-height)/2, width, height);
- _system->updateScreen();
-
- free(buf);
-
-}
-#endif
-
-
-
} // End of namespace Sword1
diff --git a/engines/sword1/screen.h b/engines/sword1/screen.h
index 7ecc96fefc..a42ab8c2dc 100644
--- a/engines/sword1/screen.h
+++ b/engines/sword1/screen.h
@@ -98,10 +98,6 @@ public:
static void decompressHIF(uint8 *src, uint8 *dest);
-#ifdef BACKEND_8BIT
- void plotYUV(byte *lut, int width, int height, byte *const *dat);
-#endif
-
private:
// for router debugging
void drawLine(uint16 x1, uint16 y1, uint16 x2, uint16 y2);