1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Remove unused stuff

This commit is contained in:
Mathieu Schroeter 2017-02-05 18:25:39 +01:00
parent c7e79eb8f4
commit a83d89da07
2 changed files with 4 additions and 9 deletions

View File

@ -137,18 +137,13 @@ bool CMovie::fileOpenMovie(RECT rect, char *pFilename)
}
// Play/pause the movie depending on the state
// of the <m_fPlaying> flag. |
// This function sets the <m_fPlaying> flag appropriately when done|
void CMovie::playMovie(int nDirection)
void CMovie::playMovie()
{
m_fPlaying = !m_fPlaying; // swap the play flag
if( !nDirection )
m_fPlaying = false; // wDirection == nullptr means PAUSE
// play/pause the AVI movie
if ( m_fPlaying )
if (m_fPlaying)
{
SDL_RenderSetLogicalSize (g_renderer, pinfo->video.width, pinfo->video.height);
Kit_PlayerPlay (m_player);
@ -235,7 +230,7 @@ bool CMovie::Play(RECT rect, char *pFilename)
{
if ( !m_bEnable ) return false;
if ( !fileOpenMovie(rect, pFilename) ) return false;
playMovie(IDM_PLAY);
playMovie();
CEvent::PushUserEvent (WM_MOVIE_PLAY);
return true;

View File

@ -26,7 +26,7 @@ public:
bool Render ();
protected:
void playMovie(int nDirection);
void playMovie();
bool fileOpenMovie(RECT rect, char *pFilename);
void fileCloseMovie();
void termAVI();