aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTorbjörn Andersson2009-03-01 12:00:44 +0000
committerTorbjörn Andersson2009-03-01 12:00:44 +0000
commit3429c17ac457bcff59f47dc68d2a11f4d1b48308 (patch)
tree83eecce6b6134afe018132108ffab33dea7d728a /engines
parent7361906f8c43c4fd96f1e9cac80347adafd245b0 (diff)
downloadscummvm-rg350-3429c17ac457bcff59f47dc68d2a11f4d1b48308.tar.gz
scummvm-rg350-3429c17ac457bcff59f47dc68d2a11f4d1b48308.tar.bz2
scummvm-rg350-3429c17ac457bcff59f47dc68d2a11f4d1b48308.zip
Removed some (the last?) remains of the BS1 MPEG cutscene player.
svn-id: r39032
Diffstat (limited to 'engines')
-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);