[Scummvm-cvs-logs] SF.net SVN: scummvm:[45268] scummvm/trunk/engines/tinsel

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Tue Oct 20 16:05:36 CEST 2009


Revision: 45268
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45268&view=rev
Author:   fingolfin
Date:     2009-10-20 14:05:35 +0000 (Tue, 20 Oct 2009)

Log Message:
-----------
TINSEL: Start cleanup BMV code

Modified Paths:
--------------
    scummvm/trunk/engines/tinsel/bmv.cpp
    scummvm/trunk/engines/tinsel/tinlib.cpp
    scummvm/trunk/engines/tinsel/tinsel.cpp

Added Paths:
-----------
    scummvm/trunk/engines/tinsel/bmv.h

Modified: scummvm/trunk/engines/tinsel/bmv.cpp
===================================================================
--- scummvm/trunk/engines/tinsel/bmv.cpp	2009-10-20 12:23:21 UTC (rev 45267)
+++ scummvm/trunk/engines/tinsel/bmv.cpp	2009-10-20 14:05:35 UTC (rev 45268)
@@ -201,8 +201,6 @@
 static int startTick;
 static uint32 nextMovieTime = 0;
 
-static int nowTick;
-
 static uint16 Au_Prev1 = 0;
 static uint16 Au_Prev2 = 0;
 static byte *ScreenBeg;
@@ -497,7 +495,7 @@
 |-------------------------------------------------------|
 \*-----------------------------------------------------*/
 
-void FettleMovieText(void) {
+static void FettleMovieText(void) {
 	int i;
 
 	bIsText = false;
@@ -519,7 +517,7 @@
 |-------------------------------------------------------|
 \*-----------------------------------------------------*/
 
-void BmvDrawText(bool bDraw) {
+static void BmvDrawText(bool bDraw) {
 	int	w, h, x, y;
 
 	for (int i = 0; i < 2; i++) {
@@ -555,7 +553,7 @@
 |-------------------------------------------------------|
 \*-----------------------------------------------------*/
 
-void MovieText(CORO_PARAM, int stringId, int x, int y, int fontId, COLORREF *pTalkColour, int duration) {
+static void MovieText(CORO_PARAM, int stringId, int x, int y, int fontId, COLORREF *pTalkColour, int duration) {
 	SCNHANDLE hFont;
 	int	index;
 
@@ -1253,19 +1251,4 @@
 	bAbort = true;
 }
 
-void SlowMovieDown(void) {
-	bigProblemCount = 0;
-
-	if (currentFrame < (nowTick-startTick)/2 && bMovieOn) {
-		startTick = nowTick - 2*currentFrame;
-	} else
-		startTick += 2;
-}
-
-void SpeedMovieUp(void) {
-	if (!bigProblemCount) {
-		startTick -= 2;
-	}
-}
-
 } // End of namespace Tinsel

Added: scummvm/trunk/engines/tinsel/bmv.h
===================================================================
--- scummvm/trunk/engines/tinsel/bmv.h	                        (rev 0)
+++ scummvm/trunk/engines/tinsel/bmv.h	2009-10-20 14:05:35 UTC (rev 45268)
@@ -0,0 +1,51 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ *
+ * Plays films within a scene, takes into account the actor in each 'column'.
+ */
+
+#ifndef TINSEL_BMV_H
+#define TINSEL_BMV_H
+
+#include "tinsel/coroutine.h"
+
+namespace Tinsel {
+
+
+void PlayBMV(CORO_PARAM, SCNHANDLE hFileStem, int myEscape);
+void FinishBMV();
+void CopyMovieToScreen(void);
+void FettleBMV(void);
+
+bool MoviePlaying(void);
+
+int32 MovieAudioLag(void);
+
+uint32 NextMovieTime(void);
+
+void AbortMovie(void);
+
+
+} // End of namespace Tinsel
+
+#endif


Property changes on: scummvm/trunk/engines/tinsel/bmv.h
___________________________________________________________________
Added: svn:mime-type
   + text/plain
Added: svn:keywords
   + Date Rev Author URL Id
Added: svn:eol-style
   + native

Modified: scummvm/trunk/engines/tinsel/tinlib.cpp
===================================================================
--- scummvm/trunk/engines/tinsel/tinlib.cpp	2009-10-20 12:23:21 UTC (rev 45267)
+++ scummvm/trunk/engines/tinsel/tinlib.cpp	2009-10-20 14:05:35 UTC (rev 45268)
@@ -33,6 +33,7 @@
 
 #include "tinsel/actors.h"
 #include "tinsel/background.h"
+#include "tinsel/bmv.h"
 #include "tinsel/config.h"
 #include "tinsel/coroutine.h"
 #include "tinsel/cursor.h"
@@ -90,11 +91,6 @@
 // in BG.CPP
 extern void ChangePalette(SCNHANDLE hPal);
 
-// in BMV.CPP
-void PlayBMV(CORO_PARAM, SCNHANDLE hFileStem, int myEscape);
-bool MoviePlaying(void);
-void AbortMovie(void);
-
 // in PDISPLAY.CPP
 extern void EnableTags(void);
 extern void DisableTags(void);

Modified: scummvm/trunk/engines/tinsel/tinsel.cpp
===================================================================
--- scummvm/trunk/engines/tinsel/tinsel.cpp	2009-10-20 12:23:21 UTC (rev 45267)
+++ scummvm/trunk/engines/tinsel/tinsel.cpp	2009-10-20 14:05:35 UTC (rev 45268)
@@ -45,6 +45,7 @@
 
 #include "tinsel/actors.h"
 #include "tinsel/background.h"
+#include "tinsel/bmv.h"
 #include "tinsel/config.h"
 #include "tinsel/cursor.h"
 #include "tinsel/drives.h"
@@ -76,14 +77,6 @@
 extern void SetDoFadeIn(bool tf);
 extern void DropBackground(void);
 
-// In BMV.CPP
-extern void FettleBMV(void);
-extern bool MoviePlaying(void);
-extern void CopyMovieToScreen(void);
-extern void FinishBMV();
-extern int32 MovieAudioLag();
-extern uint32 NextMovieTime();
-
 // In CURSOR.CPP
 extern void CursorProcess(CORO_PARAM, const void *);
 


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