[Scummvm-cvs-logs] SF.net SVN: scummvm:[39032] scummvm/trunk/engines/sword1

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Sun Mar 1 13:00:44 CET 2009


Revision: 39032
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39032&view=rev
Author:   eriktorbjorn
Date:     2009-03-01 12:00:44 +0000 (Sun, 01 Mar 2009)

Log Message:
-----------
Removed some (the last?) remains of the BS1 MPEG cutscene player.

Modified Paths:
--------------
    scummvm/trunk/engines/sword1/screen.cpp
    scummvm/trunk/engines/sword1/screen.h

Modified: scummvm/trunk/engines/sword1/screen.cpp
===================================================================
--- scummvm/trunk/engines/sword1/screen.cpp	2009-03-01 11:52:54 UTC (rev 39031)
+++ scummvm/trunk/engines/sword1/screen.cpp	2009-03-01 12:00:44 UTC (rev 39032)
@@ -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 @@
 	}
 }
 
-#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

Modified: scummvm/trunk/engines/sword1/screen.h
===================================================================
--- scummvm/trunk/engines/sword1/screen.h	2009-03-01 11:52:54 UTC (rev 39031)
+++ scummvm/trunk/engines/sword1/screen.h	2009-03-01 12:00:44 UTC (rev 39032)
@@ -98,10 +98,6 @@
 
 	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);


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